#include <args_option.hh>

Public Member Functions | |
| SwitchArg (ArgsGroup *const group, const std::string &long_name, char short_name, const std::string &description, const bool can_be_negated) | |
| virtual bool | can_be_negated () const |
| virtual const std::string | forwardable_string () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| paludis::args::SwitchArg::SwitchArg | ( | ArgsGroup *const | group, | |
| const std::string & | long_name, | |||
| char | short_name, | |||
| const std::string & | description, | |||
| const bool | can_be_negated | |||
| ) |
Constructor.
| virtual bool paludis::args::SwitchArg::can_be_negated | ( | ) | const [virtual] |
| virtual const std::string paludis::args::SwitchArg::forwardable_string | ( | ) | const [virtual] |
Ourself as a forwardable string.
For example, '--foo bar' or '--foo bar --foo baz' or '--foo', or if not specified, the empty string.
Implements paludis::args::ArgsOption.
1.5.4