Util+Test: Add support for '--' to enable non-option mode

This commit is contained in:
Riyyi
2021-09-05 23:39:08 +02:00
parent 04482fb10d
commit a5c422a2cc
3 changed files with 63 additions and 2 deletions
+1
View File
@@ -60,6 +60,7 @@ private:
bool parseLongOption(std::string_view option, std::string_view next);
int m_optionIndex { 1 };
bool m_nonOptionMode { false };
bool m_exitOnFirstError { true };
bool m_errorMessages { true };
// TODO: Implement this, maybe combine with error messages flag, enum class? or bitfield