Rename string escape --style=pcre2 to string escape --style=regex

This commit is contained in:
Mahmoud Al-Qudsi
2018-11-16 20:21:05 -06:00
parent 13e025bdb0
commit 31d17f4559
11 changed files with 19 additions and 19 deletions

View File

@@ -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;