Changeset 3255 for code/branches/core4/src/core/CommandLine.h
- Timestamp:
- Jun 29, 2009, 11:59:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/CommandLine.h
r3246 r3255 80 80 81 81 //! Returns the shortcut (example: "-p 22" for "--port 22") of the argument. 82 //! Evaluates to "" if nonethere is none.82 //! Evaluates to "" if there is none. 83 83 const std::string& getShortcut() const { return shortcut_; } 84 84 //! Sets the shortcut for the argument … … 213 213 OrxAssert(!_getInstance().existsArgument(name), 214 214 "Cannot add a command line argument with name '" + name + "' twice."); 215 OrxAssert(MultiType(defaultValue).getType() != MT_bool || MultiType(defaultValue).getBool() != true, 216 "Boolean command line arguments with positive default values are not supported." << std::endl 217 << "Please use SetCommandLineSwitch and adjust your argument: " << name); 215 218 216 219 return *(_getInstance().cmdLineArgs_[name] = new CommandLineArgument(name, defaultValue, bCommandLineOnly));
Note: See TracChangeset
for help on using the changeset viewer.