man grammer change & changed parseArg parameters in test/index.js

This commit is contained in:
x13machine 2019-03-09 23:32:54 -06:00
parent d29a7a66bf
commit b97b049fbb
3 changed files with 11 additions and 12 deletions

View File

@ -37,17 +37,17 @@ Specify file input, otherwise use last argument as input file. If no input file
is specified, read from stdin. is specified, read from stdin.
.TP .TP
.BI \-\-test .BI \-\-test
Makes sure test file(s) pass. Makes sure the test(s) pass.
.RS .RS
.PP .PP
.B \-\-glob [\fIfile\fP] .B \-\-glob [\fIfile\fP]
Specify test file to use. Specify which test to use.
.PP .PP
.B \-\-bench .B \-\-bench
Benchmarks the test file(s). Benchmarks the test(s).
.PP .PP
.B \-\-time .B \-\-time
Times The test file(s). Times The test(s).
.PP .PP
.B \-\-Run .B \-\-Run
Runs test file(s) as minified. Runs test file(s) as minified.

View File

@ -26,13 +26,13 @@ OPTIONS
-i, --input [input] -i, --input [input]
Specify file input, otherwise use last argument as input file. If no input file is specified, read from stdin. 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. --Run Runs test file(s) as minified.

7
test/index.js vendored
View File

@ -441,9 +441,8 @@ function fix() {
* Argument Parsing * Argument Parsing
*/ */
function parseArg() { function parseArg(argv) {
var argv = process.argv.slice(2), var options = {},
options = {},
opt = '', opt = '',
orphans = [], orphans = [],
arg; arg;
@ -551,7 +550,7 @@ function camelize(text) {
*/ */
function main(argv) { function main(argv) {
var opt = parseArg(); var opt = parseArg(argv);
if (opt.fix !== false) { if (opt.fix !== false) {
fix(); fix();