summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 34a2b31..b307e70 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -54,7 +54,14 @@ w - match full words only
*/
pub flags: Option<String>,
- /// The regexp or string (if -s) to search for.
+ #[arg(long, value_name = "SEPARATOR")]
+ /// Set the path separator to use when printing file paths. The default is
+ /// your platform's path separator ('/' on Unix, '\' on Windows). This flag
+ /// is intended to override the default when the environment demands it. A
+ /// path separator is limited to a single byte.
+ pub path_separator: Option<char>,
+
+ /// The regexp or string (if using `-F`) to search for.
pub find: String,
/// What to replace each match with. Unless in string mode, you may