{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2530","labels_url":"https://api.github.com/repos/babel/babel/issues/2530/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2530/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2530/events","html_url":"https://github.com/babel/babel/issues/2530","id":111127503,"number":2530,"title":"babel-node should not handle CLI args after script","user":{"login":"julien-f","id":298721,"avatar_url":"https://avatars.githubusercontent.com/u/298721?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-f","html_url":"https://github.com/julien-f","followers_url":"https://api.github.com/users/julien-f/followers","following_url":"https://api.github.com/users/julien-f/following{/other_user}","gists_url":"https://api.github.com/users/julien-f/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-f/subscriptions","organizations_url":"https://api.github.com/users/julien-f/orgs","repos_url":"https://api.github.com/users/julien-f/repos","events_url":"https://api.github.com/users/julien-f/events{/privacy}","received_events_url":"https://api.github.com/users/julien-f/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-13T08:06:21Z","updated_at":"2015-10-13T08:06:21Z","closed_at":null,"body":"```js\r\nconsole.log(process.argv)\r\n```\r\n\r\n```\r\n> node index.js --help\r\n[ '/usr/local/bin/node',\r\n  '/tmp/index.js',\r\n  '--help' ]\r\n```\r\n\r\n```\r\n> babel-node\r\nUsage: node [options] [ -e script | script.js ] [arguments] \r\n       node debug script.js [arguments] \r\n\r\nOptions:\r\n  -v, --version         print Node.js version\r\n  -e, --eval script     evaluate script\r\n  -p, --print           evaluate script and print result\r\n  -i, --interactive     always enter the REPL even if stdin\r\n                        does not appear to be a terminal\r\n  -r, --require         module to preload (option can be repeated)\r\n  --no-deprecation      silence deprecation warnings\r\n  --throw-deprecation   throw an exception anytime a deprecated function is used\r\n  --trace-deprecation   show stack traces on deprecations\r\n  --trace-sync-io       show stack trace when use of sync IO\r\n                        is detected after the first tick\r\n  --track-heap-objects  track heap object allocations for heap snapshots\r\n  --v8-options          print v8 command line options\r\n  --tls-cipher-list=val use an alternative default TLS cipher list\r\n  --icu-data-dir=dir    set ICU data load path to dir\r\n                        (overrides NODE_ICU_DATA)\r\n\r\nEnvironment variables:\r\nNODE_PATH               ':'-separated list of directories\r\n                        prefixed to the module search path.\r\nNODE_DISABLE_COLORS     set to 1 to disable colors in the REPL\r\nNODE_ICU_DATA           data path for ICU (Intl object) data\r\nNODE_REPL_HISTORY       path to the persistent REPL history file\r\n\r\nDocumentation can be found at https://nodejs.org/\r\n```\r\n\r\n```\r\n> babel-node index.js -- --help\r\n[ 'node', '/tmp/index.js', '--', '--help' ]\r\n```\r\n\r\nIt is annoying because I cannot put those `--` in the shebang and screws up some of my CLIs."}}