Skip to content

Display --help Suggestion Every Time an Error Occurs #950

@danielhelfand

Description

@danielhelfand

I am wondering what the best practice would be for displaying a suggestion to run --help would be after every error message without displaying usage. I would like it for the suggestion to be specific to the root command and subcommands ran.

An example would be that a user types a wrong command or misuses a command. The resulting message would be:

Run rootcommand subcommand --help for usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions