From 0d9926de40eba7ff96e0eca730c764676fcc89be Mon Sep 17 00:00:00 2001 From: David Peter Date: Mon, 21 Nov 2022 20:53:24 +0100 Subject: [PATCH] Move --and option up to other patter-related options --- src/cli.rs | 22 +++++++++++----------- 1 file 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>, + /// 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>, - /// Set path separator when printing file paths #[arg( long,