From 3f3ee9b87f2fce48fda35671544dbc9d2b95cff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20M=2E=20Bezerra?= Date: Sat, 24 Dec 2022 03:18:41 -0300 Subject: [PATCH 1/2] 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 From 88dfe6fbcf45f538ac5b9ed622918ec6dc7d0308 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 24 Dec 2022 11:26:49 -0500 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7336cc..408d7fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ Categories Used: ### Improvements - Allow ouch to decompress archive into existing folder [\#321](https://github.com/ouch-org/ouch/pull/321) ([a-moreira](https://github.com/a-moreira)) +- Accept inserting subcommand-independent flags in any position [\#329](https://github.com/ouch-org/ouch/pull/329) ([marcospb19](https://github.com/marcospb19)) ## [0.4.0](https://github.com/ouch-org/ouch/compare/0.3.1...0.4.0) (2022-11-20)