mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-11 05:31:14 -03:00
Rename string escape --style=pcre2 to string escape --style=regex
This commit is contained in:
@@ -196,8 +196,8 @@ static int handle_flag_1(wchar_t **argv, parser_t &parser, io_streams_t &streams
|
||||
opts->escape_style = STRING_STYLE_URL;
|
||||
} else if (wcscmp(w.woptarg, L"var") == 0) {
|
||||
opts->escape_style = STRING_STYLE_VAR;
|
||||
} else if (wcscmp(w.woptarg, L"pcre2") == 0) {
|
||||
opts->escape_style = STRING_STYLE_PCRE2;
|
||||
} else if (wcscmp(w.woptarg, L"regex") == 0) {
|
||||
opts->escape_style = STRING_STYLE_REGEX;
|
||||
} else {
|
||||
string_error(streams, _(L"%ls: Invalid escape style '%ls'\n"), cmd, w.woptarg);
|
||||
return STATUS_INVALID_ARGS;
|
||||
|
||||
Reference in New Issue
Block a user