diff options
author | David Peter <mail@david-peter.de> | 2022-11-21 20:53:24 +0100 |
---|---|---|
committer | David Peter <mail@david-peter.de> | 2022-11-21 21:06:48 +0100 |
commit | 0d9926de40eba7ff96e0eca730c764676fcc89be (patch) | |
tree | 680aeb42ea1d65a3d1456cc1fd43cf16628ade8c | |
parent | e147ba901b084561e69ff8f45284e19ad48f266a (diff) |
Move --and option up to other patter-related options
-rw-r--r-- | src/cli.rs | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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, |