Skip to content

Commit

Permalink
Merge pull request #1617 from cstyles/add-mindepth-alias
Browse files Browse the repository at this point in the history
Add a hidden `--mindepth` alias for `--min-depth`
  • Loading branch information
tavianator authored Oct 2, 2024
2 parents 3b7b95d + 0d99bad commit 3d0d186
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 3d0d186

Please sign in to comment.