diff options
| author | Marius Nita <marius@cs.pdx.edu> | 2002-08-26 06:40:21 +0000 |
|---|---|---|
| committer | Marius Nita <marius@cs.pdx.edu> | 2002-08-26 06:40:21 +0000 |
| commit | d65127c22558c67ea5e3688ce905ff6013c27a11 (patch) | |
| tree | be57ed357dad94cfe002ae48697763648246ebaa | |
| parent | 8857fa2c24d7c21276d8e5ba7e94bf44617273c9 (diff) | |
Added functions for setting boolean parameters
| -rw-r--r-- | util/epist/parser.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/epist/parser.hh b/util/epist/parser.hh index 1e70d6ee..c12fec92 100644 --- a/util/epist/parser.hh +++ b/util/epist/parser.hh @@ -48,6 +48,12 @@ public: void setArgumentStr(std::string arg) { _arg = arg.substr(1, arg.size() - 2); } + void setArgumentTrue(std::string) + { _arg = "true"; } + + void setArgumentFalse(std::string) + { _arg = "false"; } + void setOption(std::string opt) { _config->addOption(opt, _arg); } |
