summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Peter <mail@david-peter.de>2022-11-21 20:53:24 +0100
committerDavid Peter <mail@david-peter.de>2022-11-21 21:06:48 +0100
commit0d9926de40eba7ff96e0eca730c764676fcc89be (patch)
tree680aeb42ea1d65a3d1456cc1fd43cf16628ade8c
parente147ba901b084561e69ff8f45284e19ad48f266a (diff)
Move --and option up to other patter-related options
-rw-r--r--src/cli.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/cli.rs b/src/cli.rs
index e2d6375..f6e1280 100644
--- a/src/cli.rs
+++ b/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,