|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
A named subcommand that nests another argument specification. More...
#include <argument.hh>
Public Types | |
| using | argument_type = T |
Public Member Functions | |
| Command ()=default | |
| Command (CommandParameter param) | |
| auto | provided () const -> bool |
| auto | help_text () const -> std::string_view |
| auto | hidden () const -> bool |
| auto | deprecated () const -> std::string_view |
| auto | mark_provided () -> void |
Static Public Member Functions | |
| static constexpr auto | command_name () -> std::string_view |
Static Public Attributes | |
| static constexpr auto | name = Name |
A named subcommand that nests another argument specification.
Command inherits from both the argument specification type T (to hold its parsed fields) and CommandTag (so the parser identifies it as a subcommand). Use provided() to check whether the subcommand was actually invoked at runtime.
| Name | The subcommand name (e.g. "build"). |
| T | The argument specification type for the subcommand's own options. |
Definition at line 413 of file argument.hh.
| using cli::Command< Name, T >::argument_type = T |
Definition at line 415 of file argument.hh.
|
default |
|
inline |
Definition at line 418 of file argument.hh.
|
inlinestaticconstexpr |
Definition at line 423 of file argument.hh.
|
inlinenodiscard |
Definition at line 429 of file argument.hh.
|
inlinenodiscard |
Definition at line 427 of file argument.hh.
|
inlinenodiscard |
Definition at line 428 of file argument.hh.
|
inline |
Definition at line 432 of file argument.hh.
|
inlinenodiscard |
Definition at line 426 of file argument.hh.
|
staticconstexpr |
Definition at line 422 of file argument.hh.