Move --and option up to other patter-related options

This commit is contained in:
David Peter 2022-11-21 20:53:24 +01:00
parent e147ba901b
commit 0d9926de40
1 changed files with 11 additions and 11 deletions

View File

@ -144,6 +144,17 @@ pub struct Opts {
)]
pub fixed_strings: bool,
/// Additional search patterns that need to be matched
#[arg(
long = "and",
value_name = "pattern",
long_help = "Add additional required search patterns, all of which must be matched. Multiple \
additional patterns can be specified. The patterns are regular expressions, \
unless '--glob' or '--fixed-strings' is used.",
hide_short_help = true
)]
pub exprs: Option<Vec<String>>,
/// Show absolute instead of relative paths
#[arg(
long,
@ -500,17 +511,6 @@ pub struct Opts {
)]
pub pattern: String,
/// Additional search patterns that need to be matched
#[arg(
long = "and",
value_name = "pattern",
long_help = "Add additional required search patterns, all of which must be matched. Multiple \
additional patterns can be specified. The patterns are regular expressions, \
unless '--glob' or '--fixed-strings' is used.",
hide_short_help = true
)]
pub exprs: Option<Vec<String>>,
/// Set path separator when printing file paths
#[arg(
long,