{"action":"created","issue":{"url":"https://api.github.com/repos/gsscoder/commandline/issues/347","repository_url":"https://api.github.com/repos/gsscoder/commandline","labels_url":"https://api.github.com/repos/gsscoder/commandline/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/gsscoder/commandline/issues/347/comments","events_url":"https://api.github.com/repos/gsscoder/commandline/issues/347/events","html_url":"https://github.com/gsscoder/commandline/issues/347","id":176313209,"number":347,"title":"HelpVerbOption does not show detailed help for a specific verb","user":{"login":"Kohlroulade","id":15833126,"avatar_url":"https://avatars.githubusercontent.com/u/15833126?v=3","gravatar_id":"","url":"https://api.github.com/users/Kohlroulade","html_url":"https://github.com/Kohlroulade","followers_url":"https://api.github.com/users/Kohlroulade/followers","following_url":"https://api.github.com/users/Kohlroulade/following{/other_user}","gists_url":"https://api.github.com/users/Kohlroulade/gists{/gist_id}","starred_url":"https://api.github.com/users/Kohlroulade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kohlroulade/subscriptions","organizations_url":"https://api.github.com/users/Kohlroulade/orgs","repos_url":"https://api.github.com/users/Kohlroulade/repos","events_url":"https://api.github.com/users/Kohlroulade/events{/privacy}","received_events_url":"https://api.github.com/users/Kohlroulade/received_events","type":"User","site_admin":false},"labels":[{"id":4451454,"url":"https://api.github.com/repos/gsscoder/commandline/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-12T07:47:00Z","updated_at":"2016-11-05T07:37:59Z","closed_at":null,"body":"As mentioned on [this thread at StackOverflow](http://stackoverflow.com/questions/39079282/helpverboption-does-not-work-command-line-parser-c-sharp/39347522#39347522) the `HelpVerbOption` only shows the general help for the available verb, but not the detailed help for a particular help-verb.\n\nI suppose this is because of code in method `TryParseHelpVerb` in `Parser.cs`. Assume we entered `MyApp help theVerb` on bash. As `args.FirstOrDefault` will allways evaluate to `help` instead of the actual verb we want the help for and the `optionMap` on the next line won´t contain an option for `help` the method will allways return `false` as the calling method `DoParseArgumentsVerbs` also.\n\nTo come around have a look at [my suggested solution](http://stackoverflow.com/a/39347522/2528063) within the thread. Maybe we should add some checks in order to don´t get an NRE or similar, however I hope you get what I ment.\n\nEDIT: To make the solution also work for the `--help` option in combination with a verb we may also trim the `args[0]` within `if (string.Compare(args[0], helpInfo.Right.LongName, GetStringComparison(_settings)) == 0)` also in `Parser.cs`.\n"},"comment":{"url":"https://api.github.com/repos/gsscoder/commandline/issues/comments/258596589","html_url":"https://github.com/gsscoder/commandline/issues/347#issuecomment-258596589","issue_url":"https://api.github.com/repos/gsscoder/commandline/issues/347","id":258596589,"user":{"login":"nemec","id":136378,"avatar_url":"https://avatars.githubusercontent.com/u/136378?v=3","gravatar_id":"","url":"https://api.github.com/users/nemec","html_url":"https://github.com/nemec","followers_url":"https://api.github.com/users/nemec/followers","following_url":"https://api.github.com/users/nemec/following{/other_user}","gists_url":"https://api.github.com/users/nemec/gists{/gist_id}","starred_url":"https://api.github.com/users/nemec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemec/subscriptions","organizations_url":"https://api.github.com/users/nemec/orgs","repos_url":"https://api.github.com/users/nemec/repos","events_url":"https://api.github.com/users/nemec/events{/privacy}","received_events_url":"https://api.github.com/users/nemec/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T07:37:59Z","updated_at":"2016-11-05T07:37:59Z","body":"It looks like the same (or similar) issue is happening in the master (2.x) branch, though the code has changed a lot so your solution above doesn't apply anymore."}}
{"actor":{"display_login":"nemec"}}