{"action":"created","issue":{"url":"https://api.github.com/repos/bcoe/yargs/issues/156","labels_url":"https://api.github.com/repos/bcoe/yargs/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/bcoe/yargs/issues/156/comments","events_url":"https://api.github.com/repos/bcoe/yargs/issues/156/events","html_url":"https://github.com/bcoe/yargs/issues/156","id":71602037,"number":156,"title":"arguments specific to commands.","user":{"login":"ohjames","id":97685,"avatar_url":"https://avatars.githubusercontent.com/u/97685?v=3","gravatar_id":"","url":"https://api.github.com/users/ohjames","html_url":"https://github.com/ohjames","followers_url":"https://api.github.com/users/ohjames/followers","following_url":"https://api.github.com/users/ohjames/following{/other_user}","gists_url":"https://api.github.com/users/ohjames/gists{/gist_id}","starred_url":"https://api.github.com/users/ohjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohjames/subscriptions","organizations_url":"https://api.github.com/users/ohjames/orgs","repos_url":"https://api.github.com/users/ohjames/repos","events_url":"https://api.github.com/users/ohjames/events{/privacy}","received_events_url":"https://api.github.com/users/ohjames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-28T14:18:22Z","updated_at":"2015-05-05T21:51:01Z","closed_at":null,"body":"It would be really great if yargs supported git style command-options:\r\n\r\n`git -p ls-files --full-name`\r\n\r\nHere `-p` is a global argument and `--full-name` is an argument specific to the `ls-files` command.\r\n\r\nThinking about the syntax, to support the above git example maybe it could be:\r\n\r\n```javascript\r\nvar argv = require('yargs')\r\n  .command('ls-files', 'List the files', function(cmdArgs) {\r\n    cmdArgs.options({ 'full-name': { type: 'boolean' } })\r\n  })\r\n  .options({ p: { type: 'string' } })\r\n  .argv\r\n```\r\n\r\nI'm happy to work on the PR for this, just wanted to open the issue first to see if it was something you'd be willing to accept."},"comment":{"url":"https://api.github.com/repos/bcoe/yargs/issues/comments/99233763","html_url":"https://github.com/bcoe/yargs/issues/156#issuecomment-99233763","issue_url":"https://api.github.com/repos/bcoe/yargs/issues/156","id":99233763,"user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T21:51:01Z","updated_at":"2015-05-05T21:51:01Z","body":"@ohjames did you get a chance to look at this, hoping to be able to merge tonight."}}