Skip to content

Commit

Permalink
feat: add -R shorthand to --role
Browse files Browse the repository at this point in the history
  • Loading branch information
gy-mate committed Dec 14, 2024
1 parent 9b63a4a commit 9ed6042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]))

Check failure on line 255 in main.go

View workflow job for this annotation

GitHub Actions / lint

too many arguments in call to flags.StringVar

Check failure on line 255 in main.go

View workflow job for this annotation

GitHub Actions / lint-soft

too many arguments in call to flags.StringVar

Check failure on line 255 in main.go

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

too many arguments in call to flags.StringVar

Check failure on line 255 in main.go

View workflow job for this annotation

GitHub Actions / build (macos-latest)

too many arguments in call to flags.StringVar

Check failure on line 255 in main.go

View workflow job for this annotation

GitHub Actions / snapshot / snapshot

too many arguments in call to flags.StringVar
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"
Expand Down

0 comments on commit 9ed6042

Please sign in to comment.