From 878247e46db4122ec60932b892a59b3f8dc30447 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 9 Jul 2024 16:17:36 +0200 Subject: [PATCH] feat: support short option handling ("-C -n" -> "-Cn") --- cli/cli.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 340fe7718..17c528dc6 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -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 {