diff --git a/man/marked.1 b/man/marked.1 index 99bd3e0d91..5bce5e7b85 100644 --- a/man/marked.1 +++ b/man/marked.1 @@ -37,17 +37,17 @@ Specify file input, otherwise use last argument as input file. If no input file is specified, read from stdin. .TP .BI \-\-test -Makes sure test file(s) pass. +Makes sure the test(s) pass. .RS .PP .B \-\-glob [\fIfile\fP] -Specify test file to use. +Specify which test to use. .PP .B \-\-bench -Benchmarks the test file(s). +Benchmarks the test(s). .PP .B \-\-time -Times The test file(s). +Times The test(s). .PP .B \-\-Run Runs test file(s) as minified. diff --git a/man/marked.1.txt b/man/marked.1.txt index 20709371b4..400f9d9735 100644 --- a/man/marked.1.txt +++ b/man/marked.1.txt @@ -26,13 +26,13 @@ OPTIONS -i, --input [input] Specify file input, otherwise use last argument as input file. If no input file is specified, read from stdin. - --test Makes sure test file(s) pass. + --test Makes sure the test(s) pass. - --glob [file] Specify test file to use. + --glob [file] Specify which test to use. - --bench Benchmarks the test file(s). + --bench Benchmarks the test(s). - --time Times The test file(s). + --time Times The test(s). --Run Runs test file(s) as minified. diff --git a/test/index.js b/test/index.js index dc8543e7eb..9d1cf57af3 100644 --- a/test/index.js +++ b/test/index.js @@ -441,9 +441,8 @@ function fix() { * Argument Parsing */ -function parseArg() { - var argv = process.argv.slice(2), - options = {}, +function parseArg(argv) { + var options = {}, opt = '', orphans = [], arg; @@ -551,7 +550,7 @@ function camelize(text) { */ function main(argv) { - var opt = parseArg(); + var opt = parseArg(argv); if (opt.fix !== false) { fix();