Skip to content
Myr

Merge pull request #1617 from cstyles/add-mindepth-alias

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add a hidden `--mindepth` alias for `--min-depth`

authored by Tavian Barnes · committed by GitHub · parents 3b7b95d, 0d99bad · Browse files · 3 files+18 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+18 added−0 removed

  • tests:+1 added−0 removed
  • other:+17 added−0 removed

3 files+18 added−0 removed

modified:src/cli.rs+1 added
273 unmodified lines
274 #[arg(275 long,276 value_name = "depth",277 hide_short_help = true,278 alias("mindepth"),279 help = "Only show search results starting at the given depth.",280 long_help281 )]282 min_depth: Option<usize>,
658 unmodified lines
modified:tests/tests.rs+1 added
2525 unmodified lines
2526 te.assert_failure(&["-j", ""]);2527 te.assert_failure(&["--threads=0"]);25282529 te.assert_failure(&["--min-depth=a"]);2530 te.assert_failure(&["--mindepth=a"]);2531 te.assert_failure(&["--max-depth=a"]);2532 te.assert_failure(&["--maxdepth=a"]);2533 te.assert_failure(&["--exact-depth=a"]);2534
159 unmodified lines
modified:CHANGELOG.md+16 added
1# Upcoming release23## Features45- Add a hidden `--mindepth` alias for `--min-depth`. (#1617)678## Bugfixes91011## Changes121314## Other151617# 10.2.01819## Features20
784 unmodified lines