Skip to content
Myr

docs(help): pattern is mandatory for path

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

Explicitly specify in the help that if you pass a positional path argument, you need to pass in a pattern first.

authored by Thayne McCombs · committed by Thayne McCombs · parent 5bbfa3e · Browse files · 1 file+2 added−1 removed
This commit

State

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

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/cli.rs+2 added-1 removed
649 unmodified lines
650 pub path_separator: Option<String>,651652 /// The directory where the filesystem search is rooted (optional). If653 /// omitted, search the current working directory.654 /// If supplied, the pattern must come first.655 #[arg(action = ArgAction::Append,656 value_name = "path",656 help = "the root directories for the filesystem search (optional)",657 help = "the root directories for the filesystem search (optional, requires pattern first)",658 long_help,659 )]660 path: Vec<PathBuf>,661
318 unmodified lines