-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
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
Labels
No labels