mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-13 20:21:48 +00:00
chore: give all args to arg parser instead of omitting arg0
This commit is contained in:
@@ -33,8 +33,13 @@ bool ArgumentParser::ParseArguments(std::vector<std::string>& args)
|
||||
m_matched_arguments.clear();
|
||||
m_matched_options.clear();
|
||||
|
||||
if (args.empty())
|
||||
return false;
|
||||
|
||||
m_path = args[0];
|
||||
|
||||
const auto argCount = args.size();
|
||||
for (unsigned argIndex = 0; argIndex < argCount; argIndex++)
|
||||
for (unsigned argIndex = 1u; argIndex < argCount; argIndex++)
|
||||
{
|
||||
auto& arg = args[argIndex];
|
||||
|
||||
|
||||
@@ -23,4 +23,5 @@ private:
|
||||
std::vector<const CommandLineOption*> m_command_line_options;
|
||||
std::map<const CommandLineOption*, std::vector<std::string>> m_matched_options;
|
||||
std::vector<std::string> m_matched_arguments;
|
||||
std::string m_path;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user