SwitchArg interface change

This commit is contained in:
mes5k 2006-05-14 19:51:06 +00:00
parent e7f9d30e5d
commit 6652bf6577
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ void parseOptions(int argc, char** argv)
// Define arguments
//
SwitchArg btest("B","existTestB", "exist Test B", false, cmd );
SwitchArg btest("B","existTestB", "exist Test B", cmd, false);
ValueArg<string> stest("s", "stringTest", "string test", true, "homer",
"string", cmd );

View File

@ -62,7 +62,7 @@ class SwitchArg : public Arg
SwitchArg(const std::string& flag,
const std::string& name,
const std::string& desc,
bool def,
bool def = false,
Visitor* v = NULL);
@ -82,8 +82,8 @@ class SwitchArg : public Arg
SwitchArg(const std::string& flag,
const std::string& name,
const std::string& desc,
bool def,
CmdLineInterface& parser,
bool def = false,
Visitor* v = NULL);
@ -125,8 +125,8 @@ inline SwitchArg::SwitchArg(const std::string& flag,
inline SwitchArg::SwitchArg(const std::string& flag,
const std::string& name,
const std::string& desc,
bool _default,
CmdLineInterface& parser,
bool _default,
Visitor* v )
: Arg(flag, name, desc, false, false, v),
_value( _default )