Added functions for setting boolean parameters
This commit is contained in:
parent
8857fa2c24
commit
d65127c225
1 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,12 @@ public:
|
||||||
void setArgumentStr(std::string arg)
|
void setArgumentStr(std::string arg)
|
||||||
{ _arg = arg.substr(1, arg.size() - 2); }
|
{ _arg = arg.substr(1, arg.size() - 2); }
|
||||||
|
|
||||||
|
void setArgumentTrue(std::string)
|
||||||
|
{ _arg = "true"; }
|
||||||
|
|
||||||
|
void setArgumentFalse(std::string)
|
||||||
|
{ _arg = "false"; }
|
||||||
|
|
||||||
void setOption(std::string opt)
|
void setOption(std::string opt)
|
||||||
{ _config->addOption(opt, _arg); }
|
{ _config->addOption(opt, _arg); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue