mirror of
https://github.com/jarro2783/cxxopts.git
synced 2026-08-22 06:07:48 +02:00
Add support for alphanumeric options
This commit is contained in:
+2
-2
@@ -497,10 +497,10 @@ namespace cxxopts
|
||||
constexpr int OPTION_DESC_GAP = 2;
|
||||
|
||||
std::basic_regex<char> option_matcher
|
||||
("--([[:alpha:]][-_[:alpha:]]+)(=(.*))?|-([a-zA-Z]+)");
|
||||
("--([[:alnum:]][-_[:alnum:]]+)(=(.*))?|-([a-zA-Z]+)");
|
||||
|
||||
std::basic_regex<char> option_specifier
|
||||
("(([a-zA-Z]),)?([a-zA-Z][-_a-zA-Z]+)");
|
||||
("(([a-zA-Z]),)?([a-zA-Z0-9][-_a-zA-Z0-9]+)");
|
||||
|
||||
std::string
|
||||
format_option
|
||||
|
||||
Reference in New Issue
Block a user