From 9ed604285ffa5779280062f613d95550bd314d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Gy=C3=B6ngy=C3=B6si?= Date: Sat, 14 Dec 2024 20:11:50 +0100 Subject: [PATCH] feat: add `-R` shorthand to `--role` --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e997c6f1..47989553 100644 --- a/main.go +++ b/main.go @@ -252,7 +252,7 @@ func initFlags() { flags.BoolVar(&config.ResetSettings, "reset-settings", config.ResetSettings, stdoutStyles().FlagDesc.Render(help["reset-settings"])) flags.BoolVar(&config.Settings, "settings", false, stdoutStyles().FlagDesc.Render(help["settings"])) flags.BoolVar(&config.Dirs, "dirs", false, stdoutStyles().FlagDesc.Render(help["dirs"])) - flags.StringVar(&config.Role, "role", config.Role, stdoutStyles().FlagDesc.Render(help["role"])) + flags.StringVar(&config.Role, "role", "R", config.Role, stdoutStyles().FlagDesc.Render(help["role"])) flags.BoolVar(&config.ListRoles, "list-roles", config.ListRoles, stdoutStyles().FlagDesc.Render(help["list-roles"])) flags.StringVar(&config.Theme, "theme", "charm", stdoutStyles().FlagDesc.Render(help["theme"])) flags.Lookup("prompt").NoOptDefVal = "-1"