Update --string-mode references to --fixed-strings (#240)

This commit is contained in:
CosmicHorror 2023-10-17 18:08:59 -06:00 committed by GitHub
parent ad7bba5ba7
commit 4dab4123e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -88,7 +88,7 @@ Install through
## Quick Guide ## Quick Guide
1. **String-literal mode**. By default, expressions are treated as regex. Use `-s` or `--string-mode` to disable regex. 1. **String-literal mode**. By default, expressions are treated as regex. Use `-F` or `--fixed-strings` to disable regex.
```sh ```sh
> echo 'lots((([]))) of special chars' | sd -s '((([])))' '' > echo 'lots((([]))) of special chars' | sd -s '((([])))' ''

View file

@ -54,7 +54,14 @@ w - match full words only
*/ */
pub flags: Option<String>, 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, pub find: String,
/// What to replace each match with. Unless in string mode, you may /// What to replace each match with. Unless in string mode, you may