Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes #142; command: removed `-n` for `--nodejs`

  • Loading branch information...
commit 87cb61cf60535d99dba4bcafd69154abe0bccc0a 1 parent a4b7a7e
@satyr authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/command.js
  2. +2 −2 src/command.co
View
4 lib/command.js
@@ -38,7 +38,7 @@ $args = (o = require('./optparse')({
tokens: 'print the tokens the rewriter produces',
ast: 'print the syntax tree the parser produces',
json: 'print/compile as JSON',
- nodejs: ['pass options through to the "node" binary', 'ARGS+'],
+ nodejs: ['pass options through to the "node" binary', 'ARGS+', ''],
version: 'display version',
help: 'display this'
})).$args;
@@ -360,7 +360,7 @@ function forkNode(){
args = argv.slice(1);
i = 0;
while (that = args[++i]) {
- if (that === '-n' || that === '--nodejs') {
+ if (that === '--nodejs') {
args.splice(i--, 2);
}
}
View
4 src/command.co
@@ -31,7 +31,7 @@ global import
tokens : 'print the tokens the rewriter produces'
ast : 'print the syntax tree the parser produces'
json : 'print/compile as JSON'
- nodejs :['pass options through to the "node" binary' \ARGS+]
+ nodejs :['pass options through to the "node" binary' \ARGS+ '']
version : 'display version'
help : 'display this'
@@ -237,7 +237,7 @@ default
# to it, preserving the other options.
!function forkNode
args = argv.slice 1; i = 0
- args.splice i-- 2 if that of <[ -n --nodejs ]> while args[++i]
+ args.splice i-- 2 if that is \--nodejs while args[++i]
require(\child_process)spawn do
process.execPath
o.nodejs.join(' ')trim!split(/\s+/)concat args
Please sign in to comment.
Something went wrong with that request. Please try again.