Commit d971892b authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

lib/CLI11.hpp: accepts numeric options such as -1 or -2

See #2739.
parent aa9a2ad5
......@@ -402,7 +402,7 @@ inline void format_help(std::stringstream &out, std::string name, std::string de
}
/// Verify the first character of an option
template <typename T> bool valid_first_char(T c) { return std::isalpha(c, std::locale()) || c == '_'; }
template <typename T> bool valid_first_char(T c) { return std::isalnum(c, std::locale()) || c == '_'; }
/// Verify following characters of an option
template <typename T> bool valid_later_char(T c) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment