{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/12679","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/12679/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/12679/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/12679/events","html_url":"https://github.com/JuliaLang/julia/issues/12679","id":101601228,"number":12679,"title":"RFC: make '--' compulsory for ARGS","user":{"login":"rened","id":1553856,"avatar_url":"https://avatars.githubusercontent.com/u/1553856?v=3","gravatar_id":"","url":"https://api.github.com/users/rened","html_url":"https://github.com/rened","followers_url":"https://api.github.com/users/rened/followers","following_url":"https://api.github.com/users/rened/following{/other_user}","gists_url":"https://api.github.com/users/rened/gists{/gist_id}","starred_url":"https://api.github.com/users/rened/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rened/subscriptions","organizations_url":"https://api.github.com/users/rened/orgs","repos_url":"https://api.github.com/users/rened/repos","events_url":"https://api.github.com/users/rened/events{/privacy}","received_events_url":"https://api.github.com/users/rened/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-18T08:34:46Z","updated_at":"2015-08-18T15:11:53Z","closed_at":null,"body":"I find the current behavior of command line argument parsing a bit in-consistent:\r\n```jl\r\n> julia -e \"@show ARGS; using Watcher\" -- julia RUN.jl\r\nARGS = UTF8String[\"julia\",\"RUN.jl\"]\r\n\r\n> julia -e \"@show ARGS; using Watcher\" -now -- julia RUN.jl\r\nARGS = UTF8String[\"@show ARGS; using Watcher\",\"-now\",\"julia\",\"RUN.jl\"]\r\n```\r\nIt seems that, as `--` is optional, unknown parameters (like the `-now`) end up in `ARGS` despite them being before the `--`. That `\"@show ARGS...\"` ends up in `ARGS` is a bug IMHO.\r\n\r\nTo simplify the situation, I would like to propose to make the `--` compulsory, i.e. nothing before `--` can ever appear in `ARGS`."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/132244491","html_url":"https://github.com/JuliaLang/julia/issues/12679#issuecomment-132244491","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/12679","id":132244491,"user":{"login":"rened","id":1553856,"avatar_url":"https://avatars.githubusercontent.com/u/1553856?v=3","gravatar_id":"","url":"https://api.github.com/users/rened","html_url":"https://github.com/rened","followers_url":"https://api.github.com/users/rened/followers","following_url":"https://api.github.com/users/rened/following{/other_user}","gists_url":"https://api.github.com/users/rened/gists{/gist_id}","starred_url":"https://api.github.com/users/rened/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rened/subscriptions","organizations_url":"https://api.github.com/users/rened/orgs","repos_url":"https://api.github.com/users/rened/repos","events_url":"https://api.github.com/users/rened/events{/privacy}","received_events_url":"https://api.github.com/users/rened/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T15:11:53Z","updated_at":"2015-08-18T15:11:53Z","body":"Thanks for the lead!"}}