Unlinker: Make parsing specified command line arguments its own class

This commit is contained in:
Jan
2020-02-14 23:40:47 +01:00
parent f3779bac03
commit 23f77bb335
14 changed files with 373 additions and 262 deletions

View File

@ -4,7 +4,7 @@
const std::string PREFIX_LONG = "--";
const std::string PREFIX_SHORT = "-";
ArgumentParser::ArgumentParser(const CommandLineOption** options, const size_t optionCount)
ArgumentParser::ArgumentParser(const CommandLineOption* const* options, const size_t optionCount)
{
for(unsigned optionIndex = 0; optionIndex < optionCount; optionIndex++)
{

View File

@ -11,7 +11,7 @@ class ArgumentParser
std::vector<std::string> m_matched_arguments;
public:
ArgumentParser(const CommandLineOption** options, size_t optionCount);
ArgumentParser(const CommandLineOption* const* options, size_t optionCount);
bool ParseArguments(std::vector<std::string>& args);
bool ParseArguments(int argc, const char** argv);