diff --git a/MSVS/EasyCmdLineReader.1.0.0.nupkg b/MSVS/EasyCmdLineReader.1.0.2.nupkg similarity index 99% rename from MSVS/EasyCmdLineReader.1.0.0.nupkg rename to MSVS/EasyCmdLineReader.1.0.2.nupkg index a98c5ef..95f7d3e 100644 Binary files a/MSVS/EasyCmdLineReader.1.0.0.nupkg and b/MSVS/EasyCmdLineReader.1.0.2.nupkg differ diff --git a/MSVS/EasyCmdLineReader.1.0.3.nupkg b/MSVS/EasyCmdLineReader.1.0.3.nupkg new file mode 100644 index 0000000..5163ab8 Binary files /dev/null and b/MSVS/EasyCmdLineReader.1.0.3.nupkg differ diff --git a/src/manager/CommandLineOptionsManager.cpp b/src/manager/CommandLineOptionsManager.cpp index 3e04da6..3a8a58c 100644 --- a/src/manager/CommandLineOptionsManager.cpp +++ b/src/manager/CommandLineOptionsManager.cpp @@ -40,7 +40,7 @@ namespace EasySoftCmdLine bool CommandLineOptionsManager :: TryGetIntValue(std::string key, int& outValue) { std::string value; - if(TryGetValue(key, value)) + if(!TryGetValue(key, value)) return false; outValue = atoi(value.c_str()); return true; @@ -49,7 +49,7 @@ namespace EasySoftCmdLine bool CommandLineOptionsManager :: TryGetDoubleValue(std::string key, double& outValue) { std::string value; - if(TryGetValue(key, value)) + if(!TryGetValue(key, value)) return false; outValue = atof(value.c_str()); return true;