24.04
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_UTILS_TOGGLEOPTION
25 #define ARM_COMPUTE_UTILS_TOGGLEOPTION
48 std::string
help()
const override;
63 else if (
value ==
"false")
74 return "--" +
name() +
", --no-" +
name() +
" - " + _help;
SimpleOption(std::string name, T default_value)
Construct the option with the given default value.
ToggleOption(std::string name, bool default_value)
Construct the option with the given default value.
Implementation of an option that can be either true or false.
bool parse(std::string value) override
Parses the given string.
std::string name() const
Name of the option.
std::string help() const override
Help message for the option.
const bool & value() const
Get the option value.
Copyright (c) 2017-2024 Arm Limited.
Implementation of an option that accepts a single value.