Skip to content

Commit

Permalink
Merge pull request #329 from ouch-org/make-flags-positions-global
Browse files Browse the repository at this point in the history
Accept inserting subcommand-independent flags in any position
  • Loading branch information
figsoda authored Dec 24, 2022
2 parents 5d21895 + 88dfe6f commit 6da32c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6da32c4

Please sign in to comment.