chore: add --fileurls flag + update README.md

This commit is contained in:
surtur 2020-12-13 23:06:41 +01:00
parent 1bc533d13a
commit 7e8b2ca20e
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ make test
#### flags
there are a couple of flags you can use to tweak the behaviour of the program
- `-f` <./path/to/a/file/with/urls>\
- `-f`/`--fileurls` <./path/to/a/file/with/urls>\
specify a path to file with URLs (one per line)
- `-v`/`--verbose`\
turn on verbose printing to stderr

View File

@ -158,6 +158,7 @@ public class crawler {
while (argsposition < args.length) {
switch (args[argsposition]){
case "-f":
case "--fileurls":
argsposition++;
File file = new File(args[argsposition]);
argsposition++;