X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=util%2Fepist%2Fparser.hh;h=b1c02a319a0d03c397be3d49ea34a66958078c6e;hb=05690be03e8e1c23b0cabdf257db12a97dfd6ab3;hp=1e70d6ee0deac158b79ea3b9983944afec722911;hpb=bd05f7ec58f3e1f5839c372ad4fb007a8d8866f5;p=chaz%2Fopenbox diff --git a/util/epist/parser.hh b/util/epist/parser.hh index 1e70d6ee..b1c02a31 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); } @@ -67,6 +73,7 @@ private: Action::ActionType _action; std::string _key; std::string _arg; + bool _add; }; #endif //__parser_hh