diff --git a/src/core/model/command-line.cc b/src/core/model/command-line.cc index 024e37d1d..f70386523 100644 --- a/src/core/model/command-line.cc +++ b/src/core/model/command-line.cc @@ -849,10 +849,13 @@ CommandLine::StringItem::GetDefault() const template <> std::string -CommandLineHelper::GetDefault(const bool& val) +CommandLineHelper::GetDefault(const std::string& defaultValue) { + bool value; + std::istringstream iss(defaultValue); + iss >> value; std::ostringstream oss; - oss << std::boolalpha << val; + oss << std::boolalpha << value; return oss.str(); } @@ -892,10 +895,10 @@ CommandLineHelper::UserItemParse(const std::string& value, bool& dest) template <> std::string -CommandLineHelper::GetDefault