Skip to content

Commit

Permalink
Add 'overrides_with' to hidden flag
Browse files Browse the repository at this point in the history
Preven fd to end up with multiple --hidden flags
Fixes sharkdp#488
  • Loading branch information
rootbid committed Oct 2, 2019
1 parent 864f1bd commit 1874563
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ pub fn build_app() -> App<'static, 'static> {
"Note: `fd -h` prints a short and concise overview while `fd --help` \
gives all details.",
)
.arg(arg("hidden").long("hidden").short("H"))
.arg(
arg("hidden")
.long("hidden")
.short("H")
.overrides_with("hidden")
)
.arg(arg("no-ignore").long("no-ignore").short("I"))
.arg(arg("no-ignore-vcs").long("no-ignore-vcs"))
.arg(
Expand Down

0 comments on commit 1874563

Please sign in to comment.