24 #ifndef ARM_COMPUTE_TEST_OPTIONBASE
25 #define ARM_COMPUTE_TEST_OPTIONBASE
68 virtual std::string
help()
const = 0;
74 std::string
name()
const;
102 bool _is_required{
false };
103 bool _is_set{
false };
void set_required(bool is_required)
Set whether the option is required.
virtual std::string help() const =0
Help message for the option.
virtual bool parse(std::string value)=0
Parses the given string.
bool is_set() const
Has a value been assigned to the option?
bool is_required() const
Is the option required?
Abstract base class for a command line option.
Option(std::string name)
Constructor.
std::string name() const
Name of the option.
virtual ~Option()=default
Default destructor.
void set_help(std::string help)
Set the help message for the option.