Open
Description
The Cli author, or better yet the end-user via an environment variable, should determine whether to display help after parse errors.
I hate that behavior with a passion because of how often it leads to scrolling to see the parse error. If I want help, I will ask for it. I never want to see it on errors.
(This is from seeing the code in ParseErrorAction.
Activity
baronfel commentedon May 10, 2023
Big 👍 on this one - the dotnet CLI has overridden parse error reporting to only conditionally show the usage for this reason. It's possibly related to/dependent on the length of the usage section.
KalleOlaviNiemitalo commentedon May 10, 2023
Related #1873 and #1214
jonsequitur commentedon May 10, 2023
I'm working on this currently as part of the next round of
CliAction
improvements.