Skip to content

version flag misbehavior #40

@mcandre

Description

@mcandre

The help menu says that users may supply a -V flag to show the version number. However, when I do this, then I get an error.

$ nakedret -V
nakedret: unsupported flag value: -V=true (use -V=full)

Please fix the behavior so that no strange values are required in order to simply print the applications' version number.

For example, use a nil default value to indicate the absence of the flag, and treat true as a request to print a version number.

For example, simplify the version printing logic so that there is only a single boolean option: Either print all the version informtion, or print no information.

https://github.com/mcandre/buttery/blob/main/src/cmd/buttery/main.go

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