chore: add --fileurls flag + update README.md
This commit is contained in:
parent
1bc533d13a
commit
7e8b2ca20e
|
@ -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
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue