Commit 4a79a4c2 authored by Mathieu Giraud's avatar Mathieu Giraud

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

Replays d971892b.
See #2739.
parent 8b173f3f
......@@ -308,7 +308,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