summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2023-07-26 14:13:35 -0700
committerGitHub <noreply@github.com>2023-07-26 17:13:35 -0400
commit505024b33eb1fcd00e3e9bb71f1355fa2ae6e9cf (patch)
tree80471b0127730889d1eb14e2306e29bf515a14fe
parentcb03424254152e4c96d236125ef925f9333e90f4 (diff)
Ignore warning args in ParseArgs (#298)
* Ignore warning args in ParseArgs * length check
-rw-r--r--ZAPD/Main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp
index d92a279..40a38bc 100644
--- a/ZAPD/Main.cpp
+++ b/ZAPD/Main.cpp
@@ -258,6 +258,12 @@ void ParseArgs(int& argc, char* argv[])
{
std::string arg = argv[i];
+ // Ignore warning args as they have already been parsed
+ if (arg.length() > 2 && arg[0] == '-' && arg[1] == 'W' && arg[2] != '\0')
+ {
+ continue;
+ }
+
auto it = ArgFuncDictionary.find(arg);
if (it == ArgFuncDictionary.end())
{