{"action":"opened","issue":{"url":"https://api.github.com/repos/commandlineparser/commandline/issues/384","repository_url":"https://api.github.com/repos/commandlineparser/commandline","labels_url":"https://api.github.com/repos/commandlineparser/commandline/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/commandlineparser/commandline/issues/384/comments","events_url":"https://api.github.com/repos/commandlineparser/commandline/issues/384/events","html_url":"https://github.com/commandlineparser/commandline/issues/384","id":393783866,"node_id":"MDU6SXNzdWUzOTM3ODM4NjY=","number":384,"title":"MapResults with only a single Options doesnt respect Verb attribute","user":{"login":"ericnewton76","id":2211788,"node_id":"MDQ6VXNlcjIyMTE3ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/2211788?v=4","gravatar_id":"","url":"https://api.github.com/users/ericnewton76","html_url":"https://github.com/ericnewton76","followers_url":"https://api.github.com/users/ericnewton76/followers","following_url":"https://api.github.com/users/ericnewton76/following{/other_user}","gists_url":"https://api.github.com/users/ericnewton76/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnewton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnewton76/subscriptions","organizations_url":"https://api.github.com/users/ericnewton76/orgs","repos_url":"https://api.github.com/users/ericnewton76/repos","events_url":"https://api.github.com/users/ericnewton76/events{/privacy}","received_events_url":"https://api.github.com/users/ericnewton76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-23T22:08:16Z","updated_at":"2018-12-23T22:08:16Z","closed_at":null,"author_association":"MEMBER","body":"When MapResults is presented with only a single Verb-style Options class, the verb is not properly popped off the args stack.\r\n\r\nFollowing code doesnt parse commandline \"myprogram pack MyProjectfile.csproj\"\r\n```c#\r\n\t\t\t\tint exitcode = CommandLine.Parser.Default\r\n\t\t\t\t\t.ParseArguments<PackOptions>(args)\r\n\t\t\t\t\t.MapResult(\r\n\t\t\t\t\t(PackOptions opts) => RunPackCommand(opts) },\r\n\t\t\t\t\t(parserErrors) => 1\r\n\t\t\t\t\t);\r\n```"}}
{"actor":{"display_login":"ericnewton76"}}