Skip to content

Boolean flags should not require =true when present. #13

@andreimerlescu

Description

@andreimerlescu

when the tree.flagSet.Var(&Value{}) is used, it requires a flag like -v (to show the version) to appear -v=true and i need to update it so the =true is not required ; it defaults to false; but if the string is empty, the default action is that of flag.BoolVar that allows this;

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