Skip to content

Commit

Permalink
man grammer change & changed parseArg parameters in test/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
x13machine committed Mar 10, 2019
1 parent d29a7a6 commit b97b049
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions man/marked.1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions man/marked.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
7 changes: 3 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -551,7 +550,7 @@ function camelize(text) {
*/

function main(argv) {
var opt = parseArg();
var opt = parseArg(argv);

if (opt.fix !== false) {
fix();
Expand Down

0 comments on commit b97b049

Please sign in to comment.