-
Notifications
You must be signed in to change notification settings - Fork 290
Display help without requiring ParseArguments #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also am interested in having the |
I just noticed this snippet from the HelpTextTests unit test that just creates a fake result. Does this do what you were looking for?
It doesn't do the Copyright info or project name, but you can call the |
@nemec The problem is |
Ah, you're right. I was looking at the class but it's the constructor that's internal. |
Even though the NotParsed class is internal, you could create an instance by using reflection (although it's questionable if you should do so). You can find the gist here: https://gist.github.com/azforeversupporter/82b794ded5d16a390d89eb2071035388 |
I'm trying to print the help text for my options without having to force a parser error.
Currently, it seems the only way to print the help text is to call something like
I see there's
HelpText.AutoBuild
but that seems to require a NotParsed result.Is there a way to write the help text for an options class without having to parse arguments? Maybe something like
HelpText.DisplayHelp<Options>
?The text was updated successfully, but these errors were encountered: