Skip to content

Commit

Permalink
cmd: Remove -v and --version flags from subcommands
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
jmooring committed Sep 20, 2023
1 parent b0b81fc commit fbe9ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/hvm/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func init() {
cobra.OnInitialize(initConfig, initApp)

rootCmd.PersistentFlags().BoolP("help", "h", false, "Display help")
rootCmd.PersistentFlags().BoolP("version", "v", false, "Display the "+App.Name+" version")
rootCmd.Flags().BoolP("version", "v", false, "Display the "+App.Name+" version")
rootCmd.SetVersionTemplate(fmt.Sprintf("%s\n", versionString))
}

Expand Down

0 comments on commit fbe9ebb

Please sign in to comment.