File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ flags.on('longhelp', function() {
44
44
flags . on ( '--help' , function ( ) {
45
45
console . log ( ' Examples:' ) ;
46
46
console . log ( '' ) ;
47
- console . log ( ' $ %s a.js' , cmdName ) ;
48
- console . log ( ' $ %s b .js c .js --out compiled .js' , cmdName ) ;
47
+ console . log ( ' $ %s a.js [args] ' , cmdName ) ;
48
+ console . log ( ' $ %s --out compiled .js b .js c .js' , cmdName ) ;
49
49
console . log ( '' ) ;
50
50
} ) ;
51
51
@@ -120,6 +120,8 @@ function processArguments(argv) {
120
120
process . exit ( 1 ) ;
121
121
} else if ( interpretMode ) {
122
122
// Add a hint to stop commander.js from parsing following arguments.
123
+ // Note that this means that --out must come before any unknown flag as
124
+ // well as before any filename for it to be used as the out flag.
123
125
argv . splice ( i , 0 , '--' ) ;
124
126
// Save traceur flags for interpret.js.
125
127
argv . flags = argv . slice ( 2 , i ) ;
You can’t perform that action at this time.
0 commit comments