Skip to content

Mutually exclusive flags in help outputΒ #2220

@Olimpian

Description

@Olimpian

What problem does this solve?

  • needing to have the opportunity to change FlagStringer for mutually exclusive flags

Solution description

For example, we have mutually exclusive flags m1 & m2, they are required. The fact that one of them (m1 or m2) is required must be displayed to the user. With simple flags we can override cli.FlagStringer func for our custom, where can add some special information if flag is required. But with MutuallyExclusiveFlags it doesn't work.
Maybe add some func to override here too? So we can add some inside logic for output this groups of flags

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/v3relates to / is being considered for v3status/triagemaintainers still need to look into this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions