mirror of
https://github.com/chmln/sd
synced 2024-11-29 06:20:25 +00:00
Update --string-mode references to --fixed-strings (#240)
This commit is contained in:
parent
ad7bba5ba7
commit
4dab4123e1
2 changed files with 9 additions and 2 deletions
|
@ -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 '((([])))' ''
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue