src: add getopt option parser
authorEvan Lucas <evanlucas@me.com>
Tue, 19 May 2015 18:12:26 +0000 (13:12 -0500)
committerEvan Lucas <evanlucas@me.com>
Mon, 1 Jun 2015 13:39:06 +0000 (08:39 -0500)
commitc0e7bf2d8ceb65ad3840bc4ebf3cbd9fef8e8c14
tree61e07cfbc404225725fcd25e47158be49bd145c8
parentd29034b34b97a0c23e93e9d40feae132c622c0fd
src: add getopt option parser

Options have been moved into the NodeOptions class.
A new global, node_options now exists and is used
to access the options after the command line arguments
have been parsed.

PR-URL: https://github.com/nodejs/io.js/pull/1804
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
12 files changed:
deps/getopt/getopt.gyp [new file with mode: 0644]
deps/getopt/getopt.h [new file with mode: 0644]
deps/getopt/getopt_long.c [new file with mode: 0644]
node.gyp
src/node.cc
src/node_options.cc [new file with mode: 0644]
src/node_options.h [new file with mode: 0644]
test/parallel/test-cli-debug.js [new file with mode: 0644]
test/parallel/test-cli-help.js [new file with mode: 0644]
test/parallel/test-cli-v8-options.js [new file with mode: 0644]
test/parallel/test-cli-version.js [new file with mode: 0644]
test/sequential/test-deprecation-flags.js