Skip to content

Commit

Permalink
[cli] Add --version / -v support (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhurliman authored Oct 3, 2022
1 parent 361515f commit c191848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cli/mcap/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func die(s string, args ...any) {
func init() {
cobra.OnInitialize(initConfig)
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "Config file (default is $HOME/.mcap.yaml)")
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
rootCmd.InitDefaultVersionFlag()
}

func initConfig() {
Expand Down

0 comments on commit c191848

Please sign in to comment.