Skip to content

Commit

Permalink
Add a hidden --mindepth alias for --min-depth
Browse files Browse the repository at this point in the history
  • Loading branch information
cstyles committed Sep 23, 2024
1 parent 8e0bd33 commit d968098
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Upcoming release

## Features

- Add a hidden `--mindepth` alias for `--min-depth`. (#1617)


## Bugfixes


## Changes


## Other


# 10.2.0

## Features
Expand Down
1 change: 1 addition & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ pub struct Opts {
long,
value_name = "depth",
hide_short_help = true,
alias("mindepth"),
help = "Only show search results starting at the given depth.",
long_help
)]
Expand Down
1 change: 1 addition & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,7 @@ fn test_number_parsing_errors() {
te.assert_failure(&["--threads=0"]);

te.assert_failure(&["--min-depth=a"]);
te.assert_failure(&["--mindepth=a"]);
te.assert_failure(&["--max-depth=a"]);
te.assert_failure(&["--maxdepth=a"]);
te.assert_failure(&["--exact-depth=a"]);
Expand Down

0 comments on commit d968098

Please sign in to comment.