Merge pull request #329 from ouch-org/make-flags-positions-global

Accept inserting subcommand-independent flags in any position
This commit is contained in:
figsoda 2022-12-24 12:18:00 -05:00 committed by GitHub
commit 6da32c497f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -27,6 +27,7 @@ Categories Used:
### Improvements ### 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)) - 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) ## [0.4.0](https://github.com/ouch-org/ouch/compare/0.3.1...0.4.0) (2022-11-20)

View File

@ -26,15 +26,15 @@ pub struct Opts {
pub accessible: bool, pub accessible: bool,
/// Ignores hidden files /// Ignores hidden files
#[arg(short = 'H', long)] #[arg(short = 'H', long, global = true)]
pub hidden: bool, pub hidden: bool,
/// Silences output /// Silences output
#[arg(short = 'q', long)] #[arg(short = 'q', long, global = true)]
pub quiet: bool, pub quiet: bool,
/// Ignores files matched by git's ignore files /// Ignores files matched by git's ignore files
#[arg(short = 'g', long)] #[arg(short = 'g', long, global = true)]
pub gitignore: bool, pub gitignore: bool,
/// Ouch and claps subcommands /// Ouch and claps subcommands