koutil
|
Specialization of Commands for a single subcommand. More...
#include <subcommand.h>
Public Member Functions | |
constexpr | Commands (const Cmd &cmd) |
constexpr const SubcommandBase * | find (std::string_view name) const override |
Finds a subcommand by name. | |
constexpr std::size_t | size () const override |
Gets the number of subcommands. | |
Public Member Functions inherited from koutil::argparser::CommandsBase | |
virtual constexpr | ~CommandsBase ()=default |
Private Attributes | |
Cmd | m_cmd |
Specialization of Commands for a single subcommand.
Cmd | The type of the subcommand. |
|
inlineconstexpr |
|
inlinenodiscardconstexproverridevirtual |
Finds a subcommand by name.
name | The name of the subcommand to find. |
Implements koutil::argparser::CommandsBase.
|
inlinenodiscardconstexproverridevirtual |
Gets the number of subcommands.
Implements koutil::argparser::CommandsBase.
|
private |