Rename --string-mode to --fixed-strings (#192)

* Rename `--string-mode` to `--fixed-strings`

* Clarify `--fixed-strings` help text
This commit is contained in:
CosmicHorror 2023-05-16 19:25:29 -06:00 committed by GitHub
parent caf1244672
commit b5768a7a4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)]