Skip to content

Commit

Permalink
Merge pull request sharkdp#1398 from tmccombs/clap-update
Browse files Browse the repository at this point in the history
Clap update
  • Loading branch information
tmccombs committed Oct 18, 2023
2 parents 19832fc + fa01a28 commit b8e7cbd
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 72 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## Bugfixes

- `-1` properly conflicts with the exec family of options.
- `--max-results` overrides `-1`
- `--quiet` properly conflicts with the exec family of options. This used to be the case, but broke during the switch to clap-derive

## Changes

## Other
Expand Down
171 changes: 102 additions & 69 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ clap_complete = {version = "4.4.1", optional = true}
faccess = "0.2.4"

[dependencies.clap]
version = "4.1.1"
features = ["suggestions", "color", "wrap_help", "cargo", "unstable-grouped", "derive"]
version = "4.4.6"
features = ["suggestions", "color", "wrap_help", "cargo", "derive"]

[dependencies.chrono]
version = "0.4.28"
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::filter::SizeFilter;
max_term_width = 98,
args_override_self = true,
group(ArgGroup::new("execs").args(&["exec", "exec_batch", "list_details"]).conflicts_with_all(&[
"max_results", "has_results", "count", "max_one_result"])),
"max_results", "quiet", "max_one_result"])),
)]
pub struct Opts {
/// Include hidden directories and files in the search results (default:
Expand Down

0 comments on commit b8e7cbd

Please sign in to comment.