Skip to content

Allow developer to present an abbreviated help screen on user error #1214

Open

Description

@Pxtl

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.

Activity

  1. jonsequitur commented on Feb 25, 2021

    @jonsequitur
    Contributor

    There was some discussion of removing the behavior of showing help on error, to align with the dotnet CLI.

    @KathleenDollard @sfoslund

  2. davidcok commented on Dec 9, 2022

    @davidcok

    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.

  3. KalleOlaviNiemitalo commented on Dec 12, 2022

    @KalleOlaviNiemitalo

    Not showing help for a parse error was discussed in #1873.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions