- Timestamp:
- May 19, 2012, 11:27:07 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/libraries/core/CommandLineParser.cc
r8858 r9222 50 50 void CommandLineArgument::parse(const std::string& value) 51 51 { 52 if (value_. getType() == MT_Type::Bool)52 if (value_.isType<bool>()) 53 53 { 54 54 // simulate command line switch … … 298 298 infoStr << " "; 299 299 infoStr << "--" << it->second->getName() << ' '; 300 if (it->second->getValue().getType() != MT_Type::Bool) 300 if (it->second->getValue().isType<bool>()) 301 infoStr << " "; 302 else 301 303 infoStr << "ARG "; 302 else303 infoStr << " ";304 304 // fill with the necessary amount of blanks 305 305 infoStr << std::string(maxNameSize - it->second->getName().size(), ' ');
Note: See TracChangeset
for help on using the changeset viewer.