Merge pull request #306 from gabriel-samfira/fix-conflicting-options

Remove conflicting short hand option
This commit is contained in:
Gabriel 2024-10-23 16:43:54 +03:00 committed by GitHub
commit 06dfc2708d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ var rootCmd = &cobra.Command{
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
rootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "Enable debug on all API calls")
rootCmd.PersistentFlags().VarP(&outputFormat, "format", "f", "Output format (table, json)")
rootCmd.PersistentFlags().Var(&outputFormat, "format", "Output format (table, json)")
cobra.OnInitialize(initConfig)