Add single letter options.
This commit is contained in:
parent
231ec20cd5
commit
7007d5e89a
|
@ -44,20 +44,20 @@ po::variables_map parse_options(int argc, char *argv[])
|
||||||
po::options_description cmdline_desc(translate("Available options"));
|
po::options_description cmdline_desc(translate("Available options"));
|
||||||
// clang-format off
|
// clang-format off
|
||||||
cmdline_desc.add_options()
|
cmdline_desc.add_options()
|
||||||
("help",
|
("help,h",
|
||||||
translate("Display this help and exit.").str().data())
|
translate("Display this help and exit.").str().data())
|
||||||
("version",
|
("version,V",
|
||||||
translate("Display version information and exit.").str().data())
|
translate("Display version information and exit.").str().data())
|
||||||
("extended-regexp",
|
("extended-regexp,E",
|
||||||
translate("PATTERN is extended regular expression.").str().data())
|
translate("PATTERN is extended regular expression.").str().data())
|
||||||
("perl-regexp",
|
("perl-regexp,P",
|
||||||
translate("PATTERN is Perl regular expression.").str().data())
|
translate("PATTERN is Perl regular expression.").str().data())
|
||||||
("ignore-case",
|
("ignore-case,i",
|
||||||
translate("Ignore case distinctions in pattern and data.")
|
translate("Ignore case distinctions in pattern and data.")
|
||||||
.str().data())
|
.str().data())
|
||||||
("regexp", po::value<std::string>()->value_name(translate("PATTERN")),
|
("regexp,e", po::value<std::string>()->value_name(translate("PATTERN")),
|
||||||
translate("Use PATTERN for matching.").str().data())
|
translate("Use PATTERN for matching.").str().data())
|
||||||
("input-file", po::value<std::vector<std::string>>()
|
("input-file,I", po::value<std::vector<std::string>>()
|
||||||
->value_name(translate("FILE")),
|
->value_name(translate("FILE")),
|
||||||
translate("Input file. Can be used more than once.").str().data())
|
translate("Input file. Can be used more than once.").str().data())
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user