{"action":"created","comment":{"url":"https://api.github.com/repos/LendingClub/macgyver/pulls/comments/63888006","id":63888006,"diff_hunk":"@@ -137,10 +137,18 @@ public void run(String ...v) throws IOException {\n \t\t\tthrow new CLIException(\"no command specified\");\n \t\t}\n \t\tCommand command = commandMap.get(commandName);\n-\t\t\n-\t\tcommand.execute();\n-\t\t\n-\t\n+\t\tlogger.info(\"Command invocked:{} with args {}\", command.getCommandName(), args[0]);\n+\t\tJCommander jCommander = new JCommander();","path":"macgyver-cli/src/main/java/io/macgyver/cli/CLI.java","position":9,"original_position":9,"commit_id":"6c95d157c6a3ce7c006e193ad5290a9494b64c71","original_commit_id":"6c95d157c6a3ce7c006e193ad5290a9494b64c71","user":{"login":"hemanthgk10","id":5942165,"avatar_url":"https://avatars.githubusercontent.com/u/5942165?v=3","gravatar_id":"","url":"https://api.github.com/users/hemanthgk10","html_url":"https://github.com/hemanthgk10","followers_url":"https://api.github.com/users/hemanthgk10/followers","following_url":"https://api.github.com/users/hemanthgk10/following{/other_user}","gists_url":"https://api.github.com/users/hemanthgk10/gists{/gist_id}","starred_url":"https://api.github.com/users/hemanthgk10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemanthgk10/subscriptions","organizations_url":"https://api.github.com/users/hemanthgk10/orgs","repos_url":"https://api.github.com/users/hemanthgk10/repos","events_url":"https://api.github.com/users/hemanthgk10/events{/privacy}","received_events_url":"https://api.github.com/users/hemanthgk10/received_events","type":"User","site_admin":false},"body":"the help command that is there displays the available commands for Macgyver. This code basically  displays the help for each command as show below.\r\n\r\nC02MJ85JFD57:Downloads hgokavarapu$ ./macgyver login --help\r\nHelp Called:true\r\nUsage: login [options]\r\nOptions:\r\n--url\r\nURL of macgyver server\r\n\r\n\r\nThe reason of not using the same JCommander that is available is that it throws an error as it doesn't consider the HELP from \"launch-ciderella --help\" and fails with different kinds of error messages. In order to avoid confusing the existing JCommander, using a new instance of it at the subsequent help commands. Using of existing HelpCommand displays them in the following way which is not the aws/git style of display.\r\n\r\nC02MJ85JFD57:Downloads hgokavarapu$ ./macgyver help\r\nusage: macgyver <COMMAND> [args...]\r\n\r\nAVAILABLE COMMANDS Test:\r\nconfig\r\nUsage: config [options]\r\n  Options:\r\n    --get\r\n\r\n    --get-all\r\n\r\n       Default: false\r\n    --set\r\n\r\n\r\nhelp\r\nUsage: help [options]\r\n\r\nlogin\r\nUsage: login [options]\r\n  Options:\r\n    --url\r\n       URL of macgyver server\r\n\r\nupdate\r\nUsage: update [options]\r\n\r\nversion\r\nUsage: version [options]\r\n\r\nThis new code is not related to the existing helpcommand at all.","created_at":"2016-05-19T14:27:19Z","updated_at":"2016-05-19T14:27:19Z","html_url":"https://github.com/LendingClub/macgyver/pull/303#discussion_r63888006","pull_request_url":"https://api.github.com/repos/LendingClub/macgyver/pulls/303","_links":{"self":{"href":"https://api.github.com/repos/LendingClub/macgyver/pulls/comments/63888006"},"html":{"href":"https://github.com/LendingClub/macgyver/pull/303#discussion_r63888006"},"pull_request":{"href":"https://api.github.com/repos/LendingClub/macgyver/pulls/303"}}},"pull_request":{"url":"https://api.github.com/repos/LendingClub/macgyver/pulls/303","id":70617570,"html_url":"https://github.com/LendingClub/macgyver/pull/303","diff_url":"https://github.com/LendingClub/macgyver/pull/303.diff","patch_url":"https://github.com/LendingClub/macgyver/pull/303.patch","issue_url":"https://api.github.com/repos/LendingClub/macgyver/issues/303","number":303,"state":"open","locked":false,"title":"Adding facility to call --help for all commands like aws style for all the parameterized fields.","user":{"login":"hemanthgk10","id":5942165,"avatar_url":"https://avatars.githubusercontent.com/u/5942165?v=3","gravatar_id":"","url":"https://api.github.com/users/hemanthgk10","html_url":"https://github.com/hemanthgk10","followers_url":"https://api.github.com/users/hemanthgk10/followers","following_url":"https://api.github.com/users/hemanthgk10/following{/other_user}","gists_url":"https://api.github.com/users/hemanthgk10/gists{/gist_id}","starred_url":"https://api.github.com/users/hemanthgk10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemanthgk10/subscriptions","organizations_url":"https://api.github.com/users/hemanthgk10/orgs","repos_url":"https://api.github.com/users/hemanthgk10/repos","events_url":"https://api.github.com/users/hemanthgk10/events{/privacy}","received_events_url":"https://api.github.com/users/hemanthgk10/received_events","type":"User","site_admin":false},"body":"Adding flexibility to write help on the parameters.","created_at":"2016-05-18T23:46:50Z","updated_at":"2016-05-19T14:27:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf96fb54b46c6260149343bca53c74115b0071a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LendingClub/macgyver/pulls/303/commits","review_comments_url":"https://api.github.com/repos/LendingClub/macgyver/pulls/303/comments","review_comment_url":"https://api.github.com/repos/LendingClub/macgyver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LendingClub/macgyver/issues/303/comments","statuses_url":"https://api.github.com/repos/LendingClub/macgyver/statuses/6c95d157c6a3ce7c006e193ad5290a9494b64c71","head":{"label":"hemanthgk10:master","ref":"master","sha":"6c95d157c6a3ce7c006e193ad5290a9494b64c71","user":{"login":"hemanthgk10","id":5942165,"avatar_url":"https://avatars.githubusercontent.com/u/5942165?v=3","gravatar_id":"","url":"https://api.github.com/users/hemanthgk10","html_url":"https://github.com/hemanthgk10","followers_url":"https://api.github.com/users/hemanthgk10/followers","following_url":"https://api.github.com/users/hemanthgk10/following{/other_user}","gists_url":"https://api.github.com/users/hemanthgk10/gists{/gist_id}","starred_url":"https://api.github.com/users/hemanthgk10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemanthgk10/subscriptions","organizations_url":"https://api.github.com/users/hemanthgk10/orgs","repos_url":"https://api.github.com/users/hemanthgk10/repos","events_url":"https://api.github.com/users/hemanthgk10/events{/privacy}","received_events_url":"https://api.github.com/users/hemanthgk10/received_events","type":"User","site_admin":false},"repo":{"id":59158755,"name":"macgyver","full_name":"hemanthgk10/macgyver","owner":{"login":"hemanthgk10","id":5942165,"avatar_url":"https://avatars.githubusercontent.com/u/5942165?v=3","gravatar_id":"","url":"https://api.github.com/users/hemanthgk10","html_url":"https://github.com/hemanthgk10","followers_url":"https://api.github.com/users/hemanthgk10/followers","following_url":"https://api.github.com/users/hemanthgk10/following{/other_user}","gists_url":"https://api.github.com/users/hemanthgk10/gists{/gist_id}","starred_url":"https://api.github.com/users/hemanthgk10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemanthgk10/subscriptions","organizations_url":"https://api.github.com/users/hemanthgk10/orgs","repos_url":"https://api.github.com/users/hemanthgk10/repos","events_url":"https://api.github.com/users/hemanthgk10/events{/privacy}","received_events_url":"https://api.github.com/users/hemanthgk10/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hemanthgk10/macgyver","description":"DevOps Multi-Tool","fork":true,"url":"https://api.github.com/repos/hemanthgk10/macgyver","forks_url":"https://api.github.com/repos/hemanthgk10/macgyver/forks","keys_url":"https://api.github.com/repos/hemanthgk10/macgyver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hemanthgk10/macgyver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hemanthgk10/macgyver/teams","hooks_url":"https://api.github.com/repos/hemanthgk10/macgyver/hooks","issue_events_url":"https://api.github.com/repos/hemanthgk10/macgyver/issues/events{/number}","events_url":"https://api.github.com/repos/hemanthgk10/macgyver/events","assignees_url":"https://api.github.com/repos/hemanthgk10/macgyver/assignees{/user}","branches_url":"https://api.github.com/repos/hemanthgk10/macgyver/branches{/branch}","tags_url":"https://api.github.com/repos/hemanthgk10/macgyver/tags","blobs_url":"https://api.github.com/repos/hemanthgk10/macgyver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hemanthgk10/macgyver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hemanthgk10/macgyver/git/refs{/sha}","trees_url":"https://api.github.com/repos/hemanthgk10/macgyver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hemanthgk10/macgyver/statuses/{sha}","languages_url":"https://api.github.com/repos/hemanthgk10/macgyver/languages","stargazers_url":"https://api.github.com/repos/hemanthgk10/macgyver/stargazers","contributors_url":"https://api.github.com/repos/hemanthgk10/macgyver/contributors","subscribers_url":"https://api.github.com/repos/hemanthgk10/macgyver/subscribers","subscription_url":"https://api.github.com/repos/hemanthgk10/macgyver/subscription","commits_url":"https://api.github.com/repos/hemanthgk10/macgyver/commits{/sha}","git_commits_url":"https://api.github.com/repos/hemanthgk10/macgyver/git/commits{/sha}","comments_url":"https://api.github.com/repos/hemanthgk10/macgyver/comments{/number}","issue_comment_url":"https://api.github.com/repos/hemanthgk10/macgyver/issues/comments{/number}","contents_url":"https://api.github.com/repos/hemanthgk10/macgyver/contents/{+path}","compare_url":"https://api.github.com/repos/hemanthgk10/macgyver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hemanthgk10/macgyver/merges","archive_url":"https://api.github.com/repos/hemanthgk10/macgyver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hemanthgk10/macgyver/downloads","issues_url":"https://api.github.com/repos/hemanthgk10/macgyver/issues{/number}","pulls_url":"https://api.github.com/repos/hemanthgk10/macgyver/pulls{/number}","milestones_url":"https://api.github.com/repos/hemanthgk10/macgyver/milestones{/number}","notifications_url":"https://api.github.com/repos/hemanthgk10/macgyver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hemanthgk10/macgyver/labels{/name}","releases_url":"https://api.github.com/repos/hemanthgk10/macgyver/releases{/id}","deployments_url":"https://api.github.com/repos/hemanthgk10/macgyver/deployments","created_at":"2016-05-18T23:33:38Z","updated_at":"2016-05-18T23:33:42Z","pushed_at":"2016-05-18T23:44:30Z","git_url":"git://github.com/hemanthgk10/macgyver.git","ssh_url":"git@github.com:hemanthgk10/macgyver.git","clone_url":"https://github.com/hemanthgk10/macgyver.git","svn_url":"https://github.com/hemanthgk10/macgyver","homepage":null,"size":9403,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LendingClub:master","ref":"master","sha":"c967a7bed36c5c2faa9b35b2ed6e5dab99224788","user":{"login":"LendingClub","id":14156319,"avatar_url":"https://avatars.githubusercontent.com/u/14156319?v=3","gravatar_id":"","url":"https://api.github.com/users/LendingClub","html_url":"https://github.com/LendingClub","followers_url":"https://api.github.com/users/LendingClub/followers","following_url":"https://api.github.com/users/LendingClub/following{/other_user}","gists_url":"https://api.github.com/users/LendingClub/gists{/gist_id}","starred_url":"https://api.github.com/users/LendingClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LendingClub/subscriptions","organizations_url":"https://api.github.com/users/LendingClub/orgs","repos_url":"https://api.github.com/users/LendingClub/repos","events_url":"https://api.github.com/users/LendingClub/events{/privacy}","received_events_url":"https://api.github.com/users/LendingClub/received_events","type":"Organization","site_admin":false},"repo":{"id":16264762,"name":"macgyver","full_name":"LendingClub/macgyver","owner":{"login":"LendingClub","id":14156319,"avatar_url":"https://avatars.githubusercontent.com/u/14156319?v=3","gravatar_id":"","url":"https://api.github.com/users/LendingClub","html_url":"https://github.com/LendingClub","followers_url":"https://api.github.com/users/LendingClub/followers","following_url":"https://api.github.com/users/LendingClub/following{/other_user}","gists_url":"https://api.github.com/users/LendingClub/gists{/gist_id}","starred_url":"https://api.github.com/users/LendingClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LendingClub/subscriptions","organizations_url":"https://api.github.com/users/LendingClub/orgs","repos_url":"https://api.github.com/users/LendingClub/repos","events_url":"https://api.github.com/users/LendingClub/events{/privacy}","received_events_url":"https://api.github.com/users/LendingClub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LendingClub/macgyver","description":"DevOps Multi-Tool","fork":false,"url":"https://api.github.com/repos/LendingClub/macgyver","forks_url":"https://api.github.com/repos/LendingClub/macgyver/forks","keys_url":"https://api.github.com/repos/LendingClub/macgyver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LendingClub/macgyver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LendingClub/macgyver/teams","hooks_url":"https://api.github.com/repos/LendingClub/macgyver/hooks","issue_events_url":"https://api.github.com/repos/LendingClub/macgyver/issues/events{/number}","events_url":"https://api.github.com/repos/LendingClub/macgyver/events","assignees_url":"https://api.github.com/repos/LendingClub/macgyver/assignees{/user}","branches_url":"https://api.github.com/repos/LendingClub/macgyver/branches{/branch}","tags_url":"https://api.github.com/repos/LendingClub/macgyver/tags","blobs_url":"https://api.github.com/repos/LendingClub/macgyver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LendingClub/macgyver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LendingClub/macgyver/git/refs{/sha}","trees_url":"https://api.github.com/repos/LendingClub/macgyver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LendingClub/macgyver/statuses/{sha}","languages_url":"https://api.github.com/repos/LendingClub/macgyver/languages","stargazers_url":"https://api.github.com/repos/LendingClub/macgyver/stargazers","contributors_url":"https://api.github.com/repos/LendingClub/macgyver/contributors","subscribers_url":"https://api.github.com/repos/LendingClub/macgyver/subscribers","subscription_url":"https://api.github.com/repos/LendingClub/macgyver/subscription","commits_url":"https://api.github.com/repos/LendingClub/macgyver/commits{/sha}","git_commits_url":"https://api.github.com/repos/LendingClub/macgyver/git/commits{/sha}","comments_url":"https://api.github.com/repos/LendingClub/macgyver/comments{/number}","issue_comment_url":"https://api.github.com/repos/LendingClub/macgyver/issues/comments{/number}","contents_url":"https://api.github.com/repos/LendingClub/macgyver/contents/{+path}","compare_url":"https://api.github.com/repos/LendingClub/macgyver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LendingClub/macgyver/merges","archive_url":"https://api.github.com/repos/LendingClub/macgyver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LendingClub/macgyver/downloads","issues_url":"https://api.github.com/repos/LendingClub/macgyver/issues{/number}","pulls_url":"https://api.github.com/repos/LendingClub/macgyver/pulls{/number}","milestones_url":"https://api.github.com/repos/LendingClub/macgyver/milestones{/number}","notifications_url":"https://api.github.com/repos/LendingClub/macgyver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LendingClub/macgyver/labels{/name}","releases_url":"https://api.github.com/repos/LendingClub/macgyver/releases{/id}","deployments_url":"https://api.github.com/repos/LendingClub/macgyver/deployments","created_at":"2014-01-26T23:54:04Z","updated_at":"2016-05-11T00:49:48Z","pushed_at":"2016-05-19T11:46:54Z","git_url":"git://github.com/LendingClub/macgyver.git","ssh_url":"git@github.com:LendingClub/macgyver.git","clone_url":"https://github.com/LendingClub/macgyver.git","svn_url":"https://github.com/LendingClub/macgyver","homepage":null,"size":9436,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":39,"forks":7,"open_issues":39,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LendingClub/macgyver/pulls/303"},"html":{"href":"https://github.com/LendingClub/macgyver/pull/303"},"issue":{"href":"https://api.github.com/repos/LendingClub/macgyver/issues/303"},"comments":{"href":"https://api.github.com/repos/LendingClub/macgyver/issues/303/comments"},"review_comments":{"href":"https://api.github.com/repos/LendingClub/macgyver/pulls/303/comments"},"review_comment":{"href":"https://api.github.com/repos/LendingClub/macgyver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LendingClub/macgyver/pulls/303/commits"},"statuses":{"href":"https://api.github.com/repos/LendingClub/macgyver/statuses/6c95d157c6a3ce7c006e193ad5290a9494b64c71"}}}}