Skip to content
Browse files

Merge pull request #2121 from jashkenas/issue2120

add --help indicator for passing arguments to scripts run with `coffee`
  • Loading branch information...
2 parents 28a1101 + 12d6461 commit b7f2681007750caf20a3ce6519b48ce6c73f1cd6 @jashkenas jashkenas committed Feb 14, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/coffee-script/command.js
  2. +2 −2 src/
2 lib/coffee-script/command.js
@@ -26,7 +26,7 @@
return process.stderr.write(line + '\n');
- BANNER = 'Usage: coffee [options] path/to/\n\nIf called without options, `coffee` will run your script.';
+ BANNER = 'Usage: coffee [options] path/to/ -- [args]\n\nIf called without options, `coffee` will run your script.';
SWITCHES = [['-b', '--bare', 'compile without a top-level function wrapper'], ['-c', '--compile', 'compile to JavaScript and save as .js files'], ['-e', '--eval', 'pass a string from the command line as input'], ['-h', '--help', 'display this help message'], ['-i', '--interactive', 'run an interactive CoffeeScript REPL'], ['-j', '--join [FILE]', 'concatenate the source CoffeeScript before compiling'], ['-l', '--lint', 'pipe the compiled JavaScript through JavaScript Lint'], ['-n', '--nodes', 'print out the parse tree that the parser produces'], ['--nodejs [ARGS]', 'pass options directly to the "node" binary'], ['-o', '--output [DIR]', 'set the output directory for compiled JavaScript'], ['-p', '--print', 'print out the compiled JavaScript'], ['-r', '--require [FILE*]', 'require a library before executing your script'], ['-s', '--stdio', 'listen for and compile scripts over stdio'], ['-t', '--tokens', 'print out the tokens that the lexer/rewriter produce'], ['-v', '--version', 'display the version number'], ['-w', '--watch', 'watch scripts for changes and rerun commands']];
4 src/
@@ -21,10 +21,10 @@ printWarn = (line) -> process.stderr.write line + '\n'
# The help banner that is printed when `coffee` is called without arguments.
BANNER = '''
- Usage: coffee [options] path/to/
+ Usage: coffee [options] path/to/ -- [args]
If called without options, `coffee` will run your script.
- '''
# The list of all the valid option flags that `coffee` knows how to handle.

0 comments on commit b7f2681

Please sign in to comment.
Something went wrong with that request. Please try again.