File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ function main(argv, callback) {
78
78
arg = getarg ( ) ;
79
79
switch ( arg ) {
80
80
case '--test' :
81
- return require ( '../test' ) . main ( process . argv . slice ( ) ) ;
81
+ return require ( '../test' ) . main ( process . argv ) ;
82
82
case '-o' :
83
83
case '--output' :
84
84
output = argv . shift ( ) ;
Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ Benchmarks the test(s).
53
53
Times The test(s).
54
54
.PP
55
55
.B \-\- minified
56
- Runs test file(s) as minified.
56
+ Runs test file(s) as minified.
57
+ .B \-\- stop
58
+ Stop process if a test fails.
57
59
.RE
58
60
.TP
59
61
.BI \- t,\ \-\- tokens
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ OPTIONS
36
36
37
37
--time Times The test(s).
38
38
39
- --minified Runs test file(s) as minified.
39
+ --minified Runs test file(s) as minified. --stop Stop process if a test fails.
40
40
41
41
-t, --tokens
42
42
Output a token stream instead of html.
Original file line number Diff line number Diff line change @@ -447,6 +447,7 @@ function parseArg(argv) {
447
447
orphans = [ ] ,
448
448
arg ;
449
449
450
+ argv = argv . slice ( 2 ) ;
450
451
function getarg ( ) {
451
452
var arg = argv . shift ( ) ;
452
453
@@ -581,7 +582,7 @@ function main(argv) {
581
582
582
583
if ( ! module . parent ) {
583
584
process . title = 'marked' ;
584
- process . exit ( main ( process . argv . slice ( ) ) ? 0 : 1 ) ;
585
+ process . exit ( main ( process . argv ) ? 0 : 1 ) ;
585
586
} else {
586
587
exports = main ;
587
588
exports . main = main ;
You can’t perform that action at this time.
0 commit comments