michaelficarra / commonjs-everywhere

:rainbow: minimal CommonJS browser bundler with aliasing, extensibility, and source maps
BSD 3-Clause "New" or "Revised" License
158 stars 21 forks source link

makefile: remove redundant -e flags #93

Closed davidchambers closed 10 years ago

davidchambers commented 10 years ago

-p implies -e, since -p means "evaluate script and print result".

michaelficarra commented 10 years ago

Can you link to the documentation? I thought p just additionally printed the completion value and e accepted a program via CLI argument.

davidchambers commented 10 years ago

I can't find anything more authoritative than the --help output:

$ node -v
v0.11.11

$ node -h
Usage: node [options] [ -e script | script.js ] [arguments] 
       node debug script.js [arguments] 

Options:
  -v, --version        print node's version
  -e, --eval script    evaluate script
  -p, --print          evaluate script and print result
  -i, --interactive    always enter the REPL even if stdin
                       does not appear to be a terminal
  --no-deprecation     silence deprecation warnings
  --trace-deprecation  show stack traces on deprecations
  --v8-options         print v8 command line options
  --max-stack-size=val set max v8 stack size (bytes)

Environment variables:
NODE_PATH              ':'-separated list of directories
                       prefixed to the module search path.
NODE_MODULE_CONTEXTS   Set to 1 to load modules in their own
                       global contexts.
NODE_DISABLE_COLORS    Set to 1 to disable colors in the REPL

Documentation can be found at http://nodejs.org/

$ node -p '2 * 3 * 7'
42
michaelficarra commented 10 years ago

Alright, fine. Good enough for me.