mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
Unlinker: Make parsing specified command line arguments its own class
This commit is contained in:
@ -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++)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user