Skip to content

Commit

Permalink
[Fix] Error out problem with parse_unit
Browse files Browse the repository at this point in the history
  • Loading branch information
choishingwan committed Feb 23, 2020
1 parent 40a85e3 commit 49cd2fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/commander.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#endif

const std::string version = "2.2.12";
const std::string date = "2020-02-20";
const std::string date = "2020-02-22";
class Commander
{
public:
Expand Down
4 changes: 2 additions & 2 deletions src/commander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ bool Commander::parse_command(int argc, char* argv[], const char* optString,
else if (command == "type")
set_string(optarg, command, m_target.type);
else if (command == "wind-3")
error |= parse_unit_value(optarg, command, 0, m_prset.wind_3);
error |= !parse_unit_value(optarg, command, 0, m_prset.wind_3);
else if (command == "wind-5")
error |= parse_unit_value(optarg, command, 0, m_prset.wind_5);
error |= !parse_unit_value(optarg, command, 0, m_prset.wind_5);
else if (command.compare("x-range") == 0)
set_string(optarg, command, m_exclusion_range);
else
Expand Down

0 comments on commit 49cd2fa

Please sign in to comment.