24 #ifndef ARM_COMPUTE_UTILS_TOGGLEOPTION 25 #define ARM_COMPUTE_UTILS_TOGGLEOPTION 49 std::string
help()
const override;
55 std::move(name), default_value
67 else if(value ==
"false")
78 return "--" +
name() +
", --no-" +
name() +
" - " + _help;
Implementation of an option that can be either true or false.
ToggleOption(std::string name, bool default_value)
Construct the option with the given default value.
SimpleOption(std::string name, T default_value)
Construct the option with the given default value.
Copyright (c) 2017-2022 Arm Limited.
bool parse(std::string value) override
Parses the given string.
std::string name() const
Name of the option.
const bool & value() const
Get the option value.
std::string help() const override
Help message for the option.
Implementation of an option that accepts a single value.