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) 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