@ -259,6 +259,11 @@ bool ArgParser::parseArgument(std::string_view argument)
}
bool ArgParser::parse(int argc, const char* argv[])
{
return parse(argc, const_cast<char**>(argv));
bool ArgParser::parse(int argc, char* argv[])
bool result = true;
@ -63,6 +63,7 @@ public:
};
bool parse(int argc, const char* argv[]);
bool parse(int argc, char* argv[]);
void addOption(Option&& option);
void addOption(bool& value, char shortName, const char* longName, const char* usageString, const char* manString);