fix version subcommand

This commit is contained in:
Andrew Woodlee 2023-07-01 22:02:32 -05:00
parent 4b382bddd9
commit 904a579994

View File

@ -21,7 +21,7 @@ var (
) )
func init() { func init() {
versionCmd.PersistentFlags().BoolVarP(&numOnly, "num", "n", true, "Output the version number only.") versionCmd.PersistentFlags().BoolVarP(&numOnly, "num", "n", false, "Output the version number only.")
versionCmd.PersistentFlags().BoolVarP(&vPre, "vpre", "V", false, "Output the version with v prefixed.") versionCmd.PersistentFlags().BoolVarP(&vPre, "vpre", "V", false, "Output the version with v prefixed.")
} }