{"action":"created","issue":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/1752","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/1752/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/1752/comments","events_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/1752/events","html_url":"https://github.com/jashkenas/coffeescript/issues/1752","id":1831547,"number":1752,"title":"process.argv behaves differently to nodejs","user":{"login":"chrislloyd","id":718,"avatar_url":"https://avatars.githubusercontent.com/u/718?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislloyd","html_url":"https://github.com/chrislloyd","followers_url":"https://api.github.com/users/chrislloyd/followers","following_url":"https://api.github.com/users/chrislloyd/following{/other_user}","gists_url":"https://api.github.com/users/chrislloyd/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislloyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislloyd/subscriptions","organizations_url":"https://api.github.com/users/chrislloyd/orgs","repos_url":"https://api.github.com/users/chrislloyd/repos","events_url":"https://api.github.com/users/chrislloyd/events{/privacy}","received_events_url":"https://api.github.com/users/chrislloyd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jashkenas/coffeescript/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jashkenas/coffeescript/milestones/10","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/milestones/10/labels","id":25106,"number":10,"title":"as soon as a patch is available","description":"","creator":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":34,"state":"open","created_at":"2011-07-30T01:58:58Z","updated_at":"2013-11-10T13:44:58Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2011-10-06T07:21:39Z","updated_at":"2015-01-01T17:53:53Z","closed_at":null,"body":"In a file (both valid coffee script and vanilla JS):\r\n\r\n    console.log(process.argv)\r\n\r\nthen call with:\r\n\r\n    $ node argv.js -myargs\r\n    [ 'node', '/Users/Chris/Desktop/argv.js', '-myargs' ]\r\n\r\nand\r\n\r\n    $ coffee argv.js -myargs\r\n    [ 'coffee',\r\n      '/Users/Chris/Desktop/argv.js',\r\n      '-m',\r\n      '-y',\r\n      '-a',\r\n      '-r',\r\n      '-g',\r\n      '-s' ]\r\n\r\nCoffeScript still interprets flags after the script name."},"comment":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/comments/68493063","html_url":"https://github.com/jashkenas/coffeescript/issues/1752#issuecomment-68493063","issue_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/1752","id":68493063,"user":{"login":"amagura","id":5353903,"avatar_url":"https://avatars.githubusercontent.com/u/5353903?v=3","gravatar_id":"","url":"https://api.github.com/users/amagura","html_url":"https://github.com/amagura","followers_url":"https://api.github.com/users/amagura/followers","following_url":"https://api.github.com/users/amagura/following{/other_user}","gists_url":"https://api.github.com/users/amagura/gists{/gist_id}","starred_url":"https://api.github.com/users/amagura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amagura/subscriptions","organizations_url":"https://api.github.com/users/amagura/orgs","repos_url":"https://api.github.com/users/amagura/repos","events_url":"https://api.github.com/users/amagura/events{/privacy}","received_events_url":"https://api.github.com/users/amagura/received_events","type":"User","site_admin":false},"created_at":"2015-01-01T17:53:53Z","updated_at":"2015-01-01T17:53:53Z","body":"@slezica even if you are familiar with the `--` convention, what if your program uses a parser that makes use of `--`?  `--` should not have to passed just to have portable argument parsing between javascript and coffescript, when you're not compiling your coffeescript, and `process.argv` shouldn't be modified when your compiling since that will confuse and irritate people (especially people that write option parsers in coffeescript to be used in both javascript and coffeescript)."}}