You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow developer to present an abbreviated help screen on user error #1214
When the user makes a mistake on an option it outputs the full help-screen after the red-text. This pushes the error out of the screen if you've a long help-screen.
I could customize this behavior in the HelpBuilder, but the HelpBuilder doesn't let me know why the user is seeing help. Even just the ability to know if we're showing "Help" because the user made a mistake (in which case an abbreviated "help" and a note to try appname -? is sufficient) or if they want the full "Help", in which case it's time to drink from the firehose.
Like if I knew they were seeing help because they missed a required thing or made a typo, I'd skip my options list, which looks like it'd be trivial to do by subclassing HelpBuilder.
I second the request to not show the entire help document in conjunction with an error message. A simple message like See 'app name --help' for the full help information should suffice. At least make it a configuration option somewhere to suppress the full help output.
Activity
jonsequitur commentedon Feb 25, 2021
There was some discussion of removing the behavior of showing help on error, to align with the
dotnetCLI.@KathleenDollard @sfoslund
davidcok commentedon Dec 9, 2022
I second the request to not show the entire help document in conjunction with an error message. A simple message like
See 'app name --help' for the full help informationshould suffice. At least make it a configuration option somewhere to suppress the full help output.KalleOlaviNiemitalo commentedon Dec 12, 2022
Not showing help for a parse error was discussed in #1873.