man grammer change & changed parseArg parameters in test/index.js
This commit is contained in:
parent
d29a7a66bf
commit
b97b049fbb
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
7
test/index.js
vendored
7
test/index.js
vendored
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user