mirror of
https://github.com/chmln/sd
synced 2025-02-16 15:58:23 +00:00
Rename --string-mode
to --fixed-strings
(#192)
* Rename `--string-mode` to `--fixed-strings` * Clarify `--fixed-strings` help text
This commit is contained in:
parent
caf1244672
commit
b5768a7a4e
1 changed files with 7 additions and 2 deletions
|
@ -18,8 +18,13 @@ pub struct Options {
|
|||
/// Output result into stdout and do not modify files.
|
||||
pub preview: bool,
|
||||
|
||||
#[arg(short = 's', long = "string-mode")]
|
||||
/// Treat expressions as non-regex strings.
|
||||
#[arg(
|
||||
short = 'F',
|
||||
long = "fixed-strings",
|
||||
short_alias = 's',
|
||||
alias = "string-mode"
|
||||
)]
|
||||
/// Treat FIND and REPLACE_WITH args as literal strings
|
||||
pub literal_mode: bool,
|
||||
|
||||
#[arg(short)]
|
||||
|
|
Loading…
Add table
Reference in a new issue