diff options
Diffstat (limited to 'paludis/args/args_option.hh')
-rw-r--r-- | paludis/args/args_option.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/paludis/args/args_option.hh b/paludis/args/args_option.hh index 67db22fdc..1a35d6d06 100644 --- a/paludis/args/args_option.hh +++ b/paludis/args/args_option.hh @@ -219,6 +219,7 @@ namespace paludis { private: std::string _argument; + bool _can_be_negated; void (* _validator) (const std::string &); public: @@ -226,14 +227,16 @@ namespace paludis * Constructor */ StringArg(ArgsGroup * const, const std::string & long_name, - const char short_name, const std::string & description); + const char short_name, const std::string & description, + const bool can_be_negated = false); /** * Constructor with validator. */ StringArg(ArgsGroup * const, const std::string & long_name, const char short_name, const std::string & description, - void (* validator) (const std::string &)); + void (* validator) (const std::string &), + const bool can_be_negated = false); /** * Fetch the argument that was given to this option. |