Skip to content

Improve help text for a flag added by BoolFunc #430

@tomasaschan

Description

@tomasaschan

The help text for a flag added by BoolFunc could be improved. For example:

cmd.Flags().BoolFunc("foo", "bar", func(_ string) error { return nil })

produces:

--foo func[=true]       bar (default )

It would make more sense to have it show something like

--foo       bar

Originally posted by @zombiezen in #429 (comment)

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