Skip to content

Commit

Permalink
Add shorthand letter for --ui-size (#835)
Browse files Browse the repository at this point in the history
* 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 <git@yardenshoham.com>

* Drop `-c` for `--config`

Signed-off-by: Yarden Shoham <git@yardenshoham.com>

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
  • Loading branch information
yardenshoham committed Jan 4, 2024
1 parent e70741d commit be591b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit be591b8

Please sign in to comment.