#include <args_option.hh>
Public Member Functions | |
AliasArg (ArgsOption *const other, const std::string &new_long_name, bool is_hidden=false) | |
virtual bool | specified () const |
virtual void | set_specified (const bool value) |
virtual bool | hidden () const |
virtual void | set_hidden (const bool value) |
ArgsOption * | other () const |
virtual bool | can_be_negated () const |
virtual const std::string | forwardable_string () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
paludis::args::AliasArg::AliasArg | ( | ArgsOption *const | other, | |
const std::string & | new_long_name, | |||
bool | is_hidden = false | |||
) |
Constructor.
virtual bool paludis::args::AliasArg::specified | ( | ) | const [inline, virtual] |
Fetch whether or not we were specified on the command line.
Reimplemented from paludis::args::ArgsOption.
virtual void paludis::args::AliasArg::set_specified | ( | const bool | value | ) | [inline, virtual] |
Set the value returned by specified().
Reimplemented from paludis::args::ArgsOption.
ArgsOption* paludis::args::AliasArg::other | ( | ) | const [inline] |
Fetch our associated option.
virtual bool paludis::args::AliasArg::can_be_negated | ( | ) | const [virtual] |
virtual const std::string paludis::args::AliasArg::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.