diff --git a/index.js b/index.js index 9b26fb1..4cf0fc0 100644 --- a/index.js +++ b/index.js @@ -7,14 +7,20 @@ const async = require("async"); const fs = require("fs"); const cTable = require("console.table"); const argv = require("yargs") - .usage(`Usage: dwix --verbose --output [dir] url`) + .usage(`Usage: dwix --verbose --output [dir] `) + .example(`dwix http://127.0.0.1`) + .example(`dwix --verbose http://127.0.0.1`) + .example(`dwix --verbose --output urls.txt http://127.0.0.1`) .alias("v", "verbose") .alias("V", "verbose") + .nargs("verbose", 0) .describe("v", "Enable verbose logging") .alias("p", "parallel") + .nargs("parallel", 1) .default("parallel", 10) .describe("p", "Number of urls to scan at once") .alias("o", "output") + .nargs("output", 1) .describe("o", "Output scanned urls to file") .help("h") .alias("h", "help")