diff --git a/go/cli/mcap/cmd/root.go b/go/cli/mcap/cmd/root.go index cdd6adf702..6435ed35b6 100644 --- a/go/cli/mcap/cmd/root.go +++ b/go/cli/mcap/cmd/root.go @@ -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() {