diff --git a/main.go b/main.go index e997c6f1..042689c3 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.StringVarP(&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"