feat: support short option handling ("-C -n" -> "-Cn")

This commit is contained in:
decentral1se 2024-07-09 16:17:36 +02:00
parent ef547aed25
commit 878247e46d
Signed by untrusted user: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -165,8 +165,9 @@ func newAbraApp(version, commit string) *cli.Command {
&UpgradeCommand,
&AutoCompleteCommand,
},
EnableShellCompletion: true,
ShellComplete: autocomplete.SubcommandComplete,
EnableShellCompletion: true,
UseShortOptionHandling: true,
ShellComplete: autocomplete.SubcommandComplete,
}
app.Before = func(ctx context.Context, cmd *cli.Command) error {