8000 Selectively hide arguments from '-h' text (but not '--help') · Issue #1064 · clap-rs/clap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Selectively hide arguments from '-h' text (but not '--help') #1064
Closed
@sharkdp

Description

@sharkdp

I really like clap's feature to distinguish between a short and concise help text via -h and a longer and detailed help text via --help (see Arg::long_help).

It would be great if whole arguments (e.g. options that are not commonly used) could be hidden from the -h text but still show up on the detailed --help text.

I propose to add a method like Arg::short_hidden(self, h: bool) or Arg::long_visible(self, v: bool) that could be used to configure this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-helpArea: documentation, including docs.rs, readme, examples, etc...E-mediumCall for participation: Experience needed to fix: Medium / intermediate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0