From 4c133f0d0f95b2e59d8cb5a848f4dae35d1239d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Wed, 19 Jun 2024 22:44:07 -0700 Subject: [PATCH] enable short option merging --- main.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 9eda459..d4666f0 100644 --- a/main.go +++ b/main.go @@ -349,14 +349,15 @@ var ( func main() { app := &cli.App{ - Name: appname, - Usage: appdesc, - Version: appversion, - Before: before_all, - After: after, - Action: action, - Commands: []*cli.Command{do_trash, do_list, do_restore, do_clean}, - Flags: global_flags, + Name: appname, + Usage: appdesc, + Version: appversion, + Before: before_all, + After: after, + Action: action, + Commands: []*cli.Command{do_trash, do_list, do_restore, do_clean}, + Flags: global_flags, + UseShortOptionHandling: true, } if err := app.Run(os.Args); err != nil {