mirror of
https://github.com/sharkdp/fd
synced 2024-10-04 14:59:15 +00:00
Move --and option up to other patter-related options
This commit is contained in:
parent
e147ba901b
commit
0d9926de40
22
src/cli.rs
22
src/cli.rs
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue