From 3f3ee9b87f2fce48fda35671544dbc9d2b95cff3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20M=2E=20Bezerra?= Date: Sat, 24 Dec 2022 03:18:41 -0300 Subject: [PATCH] accept inserting flags in any position --- src/opts.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opts.rs b/src/opts.rs index d478552..7bca705 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -26,15 +26,15 @@ pub struct Opts { pub accessible: bool, /// Ignores hidden files - #[arg(short = 'H', long)] + #[arg(short = 'H', long, global = true)] pub hidden: bool, /// Silences output - #[arg(short = 'q', long)] + #[arg(short = 'q', long, global = true)] pub quiet: bool, /// Ignores files matched by git's ignore files - #[arg(short = 'g', long)] + #[arg(short = 'g', long, global = true)] pub gitignore: bool, /// Ouch and claps subcommands -- 2.11.4.GIT