{"action":"created","issue":{"url":"https://api.github.com/repos/testdouble/scripty/issues/5","repository_url":"https://api.github.com/repos/testdouble/scripty","labels_url":"https://api.github.com/repos/testdouble/scripty/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/testdouble/scripty/issues/5/comments","events_url":"https://api.github.com/repos/testdouble/scripty/issues/5/events","html_url":"https://github.com/testdouble/scripty/issues/5","id":147437155,"number":5,"title":"Pass arguments after `--` through to the script ","user":{"login":"deanius","id":24406,"avatar_url":"https://avatars.githubusercontent.com/u/24406?v=3","gravatar_id":"","url":"https://api.github.com/users/deanius","html_url":"https://github.com/deanius","followers_url":"https://api.github.com/users/deanius/followers","following_url":"https://api.github.com/users/deanius/following{/other_user}","gists_url":"https://api.github.com/users/deanius/gists{/gist_id}","starred_url":"https://api.github.com/users/deanius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanius/subscriptions","organizations_url":"https://api.github.com/users/deanius/orgs","repos_url":"https://api.github.com/users/deanius/repos","events_url":"https://api.github.com/users/deanius/events{/privacy}","received_events_url":"https://api.github.com/users/deanius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-11T13:54:33Z","updated_at":"2016-04-11T14:08:00Z","closed_at":null,"body":"Since https://github.com/npm/npm/issues/3494, if I want to pass args to the script run by `npm run` (as distinct from passing args to `npm`), I pass them after a `--`.\r\n\r\n`npm run test -- --grep 'specific test'     #<- these are args for mocha, not for npm`\r\n\r\n \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/testdouble/scripty/issues/comments/208364441","html_url":"https://github.com/testdouble/scripty/issues/5#issuecomment-208364441","issue_url":"https://api.github.com/repos/testdouble/scripty/issues/5","id":208364441,"user":{"login":"deanius","id":24406,"avatar_url":"https://avatars.githubusercontent.com/u/24406?v=3","gravatar_id":"","url":"https://api.github.com/users/deanius","html_url":"https://github.com/deanius","followers_url":"https://api.github.com/users/deanius/followers","following_url":"https://api.github.com/users/deanius/following{/other_user}","gists_url":"https://api.github.com/users/deanius/gists{/gist_id}","starred_url":"https://api.github.com/users/deanius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanius/subscriptions","organizations_url":"https://api.github.com/users/deanius/orgs","repos_url":"https://api.github.com/users/deanius/repos","events_url":"https://api.github.com/users/deanius/events{/privacy}","received_events_url":"https://api.github.com/users/deanius/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T14:08:00Z","updated_at":"2016-04-11T14:08:00Z","body":"```\r\nnpm run test -- --foo bar # test command is `scripty` in package.json\r\n\r\n> project@1.0.0 test /Users/deanius/src/project\r\n> scripty \"--foo\" \"bar\"\r\n\r\nExecuting \"/project/scripts/test.sh\":\r\n\r\n> #!/bin/bash\r\n> echo $@\r\n>\r\n```\r\n\r\nNothing is echoed - scripty should pass its arguments through, and docs should \r\nshow that this use case is supported."}}