Disable shell completion descriptions

This commit is contained in:
neilotoole 2024-01-31 16:09:59 -07:00
parent 039cfdc285
commit 5917d2750c

View File

@ -87,6 +87,7 @@ See docs and more: https://sq.io`,
cmd.Flags().SortFlags = false cmd.Flags().SortFlags = false
cmd.PersistentFlags().SortFlags = false cmd.PersistentFlags().SortFlags = false
cmd.CompletionOptions.DisableDescriptions = true
// The --help flag must be explicitly added to rootCmd, // The --help flag must be explicitly added to rootCmd,
// or else cobra tries to do its own (unwanted) thing. // or else cobra tries to do its own (unwanted) thing.