From 2273b1de198ae8f84fcd6c8d1981ce001f57c221 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 23 Oct 2024 13:38:05 +0000 Subject: [PATCH] Remove conflicting short hand option The --format command line option is persistent to allow all commands to output to either json or table. The shorthand of this option caused a conflict with other subcommands that also define the -f option. Removing the persitent short form option. Signed-off-by: Gabriel Adrian Samfira --- cmd/garm-cli/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/garm-cli/cmd/root.go b/cmd/garm-cli/cmd/root.go index 10217308..d1370567 100644 --- a/cmd/garm-cli/cmd/root.go +++ b/cmd/garm-cli/cmd/root.go @@ -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)