diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2023-07-26 14:13:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-26 17:13:35 -0400 |
| commit | 505024b33eb1fcd00e3e9bb71f1355fa2ae6e9cf (patch) | |
| tree | 80471b0127730889d1eb14e2306e29bf515a14fe | |
| parent | cb03424254152e4c96d236125ef925f9333e90f4 (diff) | |
Ignore warning args in ParseArgs (#298)
* Ignore warning args in ParseArgs
* length check
| -rw-r--r-- | ZAPD/Main.cpp | 6 |
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()) { |
