Skip to content

#[arg(value_delimiter = ':')] Delimiter isnt displayed in the help message. #5392

Open
@max-ishere

Description

Please complete the following tasks

Clap Version

4.5.2

Describe your use case

Most of the arguments are already documented by clap, I didnt even have to do anything (nice). However the delimiter doesnt show up in the help message.

    /// Colon-separated list of lock types
    #[arg(required = true, value_delimiter = ':')]
    #[clap(long)]
    what: Vec<InhibitTarget>,
Options:
      --what <WHAT>  Colon-separated list of lock types [possible values: shutdown, sleep, ...]

Describe the solution you'd like

The delimiter should be shown like this:

Options:
      --what <WHAT>  [`:` separated list of: shutdown, sleep, ...]

Alternatives, if applicable

No response

Additional Context

No response

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions