Skip to content

Error message templates #1734

Description

@ghosty141

Describe your use case

Since I'm using clap to create an interactive cl program, I'd like to skip whole "USAGE: " section since it shows very few useful information and takes up quite a lot of screen-space:

USAGE:
    myapp [SUBCOMMAND]

For more information try --help

Describe the solution you'd like

It would be great to customize the error message. For example, select which parts should be shown (error, usage, additional information).

Alternatives, if applicable

For now just cutting off everything after "USAGE:" kinda works but it's not really pretty.

With some mentoring I'd maybe try to implement it myself if this is considered a good addition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-helpArea: documentation, including docs.rs, readme, examples, etc...C-enhancementCategory: Raise on the bar on expectationsS-waiting-on-designStatus: Waiting on user-facing design to be resolved before implementing

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions