{"action":"created","issue":{"url":"https://api.github.com/repos/gsscoder/commandline/issues/281","repository_url":"https://api.github.com/repos/gsscoder/commandline","labels_url":"https://api.github.com/repos/gsscoder/commandline/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/gsscoder/commandline/issues/281/comments","events_url":"https://api.github.com/repos/gsscoder/commandline/issues/281/events","html_url":"https://github.com/gsscoder/commandline/issues/281","id":127583408,"number":281,"title":"Display help without requiring ParseArguments","user":{"login":"Steve887","id":129719,"avatar_url":"https://avatars.githubusercontent.com/u/129719?v=3","gravatar_id":"","url":"https://api.github.com/users/Steve887","html_url":"https://github.com/Steve887","followers_url":"https://api.github.com/users/Steve887/followers","following_url":"https://api.github.com/users/Steve887/following{/other_user}","gists_url":"https://api.github.com/users/Steve887/gists{/gist_id}","starred_url":"https://api.github.com/users/Steve887/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Steve887/subscriptions","organizations_url":"https://api.github.com/users/Steve887/orgs","repos_url":"https://api.github.com/users/Steve887/repos","events_url":"https://api.github.com/users/Steve887/events{/privacy}","received_events_url":"https://api.github.com/users/Steve887/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-01-20T01:30:46Z","updated_at":"2016-08-03T09:39:01Z","closed_at":null,"body":"I'm trying to print the help text for my options without having to force a parser error.\r\n\r\nCurrently, it seems the only way to print the help text is to call something like\r\n\r\n    Parser.Default.ParseArguments<Options>(new string[] { \"verb\", \"--help\" });\r\n\r\nI see there's `HelpText.AutoBuild` but that seems to require a NotParsed result.\r\n\r\nIs there a way to write the help text for an options class without having to parse arguments? Maybe something like `HelpText.DisplayHelp<Options>`?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gsscoder/commandline/issues/comments/237191339","html_url":"https://github.com/gsscoder/commandline/issues/281#issuecomment-237191339","issue_url":"https://api.github.com/repos/gsscoder/commandline/issues/281","id":237191339,"user":{"login":"azforeversupporter","id":6650061,"avatar_url":"https://avatars.githubusercontent.com/u/6650061?v=3","gravatar_id":"","url":"https://api.github.com/users/azforeversupporter","html_url":"https://github.com/azforeversupporter","followers_url":"https://api.github.com/users/azforeversupporter/followers","following_url":"https://api.github.com/users/azforeversupporter/following{/other_user}","gists_url":"https://api.github.com/users/azforeversupporter/gists{/gist_id}","starred_url":"https://api.github.com/users/azforeversupporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azforeversupporter/subscriptions","organizations_url":"https://api.github.com/users/azforeversupporter/orgs","repos_url":"https://api.github.com/users/azforeversupporter/repos","events_url":"https://api.github.com/users/azforeversupporter/events{/privacy}","received_events_url":"https://api.github.com/users/azforeversupporter/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T09:39:01Z","updated_at":"2016-08-03T09:39:01Z","body":"@Steve887, @nemec \r\n\r\nEven though the NotParsed class is internal, you could create an instance by using reflection (although it's questionable if you should do so).\r\nI created a gist with an extension method _GetAutoBuildHelpText_ on the _ParserResult_ class that will do exactly the same as the code in the unit test, except for the fact that it'll do this by using reflection.\r\n\r\nYou can find the gist here: https://gist.github.com/azforeversupporter/82b794ded5d16a390d89eb2071035388"}}
{"actor":{"display_login":"azforeversupporter"}}