Skip to content

Commit

Permalink
bug: Update clap to 4.4.6
Browse files Browse the repository at this point in the history
This also fixes a couple of problems that are now errors:

- Remove use of unstable-grouped feature flag that no longer exists
- Fix some conflicts rules with non-existant options
  * has_results should have been quiet
  * count doesn't exist. I'm not sure where it came from

Fixes: #1397
  • Loading branch information
tmccombs committed Oct 18, 2023
1 parent 19832fc commit e6b5a4e
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 72 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## Bugfixes

- `--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 e6b5a4e

Please sign in to comment.