tested version flag and subcmd on exec and pidproxy; some clean up

This commit is contained in:
2024-09-19 17:34:56 +10:00
parent dc6d575fae
commit fe31698724
8 changed files with 14 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ func (v Version) Flag(cmd *cobra.Command) {
}
func (v Version) FlagHook() {
if viper.GetInt(versionFlag) > 0 {
if viper.GetBool(versionFlag) {
v.Print()
}
}