From be591b8646e97d83410fc1099b2348c54227595c Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Thu, 4 Jan 2024 10:20:21 +0200 Subject: [PATCH] Add shorthand letter for `--ui-size` (#835) * Add shorthand letter for `--config` and `--ui-size` Now we can use `-c` instead of `--config` and `-u` instead of `--ui-size` Signed-off-by: Yarden Shoham * Drop `-c` for `--config` Signed-off-by: Yarden Shoham --------- Signed-off-by: Yarden Shoham --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 8497b02f..6a3e4b0d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -64,7 +64,7 @@ func (cli *Cli) setFlags() { kubeconfig := flag.String("kubeconfig", filepath.Join(homeDir(), ".kube", "config"), "(optional) absolute path to the kubeconfig file") flags := cli.rootCmd.PersistentFlags() flags.StringVar(&cfgFile, "config", *kubeconfig, "path of kubeconfig") - flags.IntVar(&uiSize, "ui-size", 4, "number of list items to show in menu at once") + flags.IntVarP(&uiSize, "ui-size", "u", 4, "number of list items to show in menu at once") flags.BoolVarP(&silenceTable, "silence-table", "s", false, "enable/disable output of context table on successful config update") flags.BoolVarP(&macNotify, "mac-notify", "m", false, "enable to display Mac notification banner") }