{"action":"created","issue":{"url":"https://api.github.com/repos/tj/commander.js/issues/466","repository_url":"https://api.github.com/repos/tj/commander.js","labels_url":"https://api.github.com/repos/tj/commander.js/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/tj/commander.js/issues/466/comments","events_url":"https://api.github.com/repos/tj/commander.js/issues/466/events","html_url":"https://github.com/tj/commander.js/issues/466","id":115666319,"number":466,"title":"Custom command name in --help?","user":{"login":"gocreating","id":5002343,"avatar_url":"https://avatars3.githubusercontent.com/u/5002343?v=4","gravatar_id":"","url":"https://api.github.com/users/gocreating","html_url":"https://github.com/gocreating","followers_url":"https://api.github.com/users/gocreating/followers","following_url":"https://api.github.com/users/gocreating/following{/other_user}","gists_url":"https://api.github.com/users/gocreating/gists{/gist_id}","starred_url":"https://api.github.com/users/gocreating/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocreating/subscriptions","organizations_url":"https://api.github.com/users/gocreating/orgs","repos_url":"https://api.github.com/users/gocreating/repos","events_url":"https://api.github.com/users/gocreating/events{/privacy}","received_events_url":"https://api.github.com/users/gocreating/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2015-11-07T13:28:34Z","updated_at":"2018-02-02T18:09:07Z","closed_at":"2017-07-19T15:37:23Z","author_association":"NONE","body":"I named my cli `sd` in package.json, but here shows the wrong help message `Usage: index [options] [command]`\nnow the command name is parsed from file name, is there a way to customize it?\n\n```\n$ node cli/index.js -h\n\n  Usage: index [options] [command]\n\n\n  Commands:\n\n    serve|s   launch exseed app\n\n  Options:\n\n    -h, --help       output usage information\n    -V, --version    output the version number\n    -e, --env <env>  specify environment (development|test|production)\n```\n\nnow the way I fix this is replacing process.argv[1] before program.parse:\n\n```\nprocess.argv[1] = 'sd';\nprogram.parse(process.argv);\n```\n\nI think there should be another better way\n"},"comment":{"url":"https://api.github.com/repos/tj/commander.js/issues/comments/362660829","html_url":"https://github.com/tj/commander.js/issues/466#issuecomment-362660829","issue_url":"https://api.github.com/repos/tj/commander.js/issues/466","id":362660829,"user":{"login":"dienluong","id":4752832,"avatar_url":"https://avatars3.githubusercontent.com/u/4752832?v=4","gravatar_id":"","url":"https://api.github.com/users/dienluong","html_url":"https://github.com/dienluong","followers_url":"https://api.github.com/users/dienluong/followers","following_url":"https://api.github.com/users/dienluong/following{/other_user}","gists_url":"https://api.github.com/users/dienluong/gists{/gist_id}","starred_url":"https://api.github.com/users/dienluong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dienluong/subscriptions","organizations_url":"https://api.github.com/users/dienluong/orgs","repos_url":"https://api.github.com/users/dienluong/repos","events_url":"https://api.github.com/users/dienluong/events{/privacy}","received_events_url":"https://api.github.com/users/dienluong/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T18:09:07Z","updated_at":"2018-02-02T18:09:07Z","author_association":"NONE","body":"I was trying to figure this out too. The API documentation didn't help because it was so dated.  I would update it myself (at least the name() part) if I knew how..."}}
{"actor":{"display_login":"dienluong"}}