Defines the base argument class and common utility.
std::optional< std::reference_wrapper< std::unique_ptr< T > > > uptr_opt_t
Structure representing a single command-line argument token.
token_type type
The token's type discrimiator value.
bool is_flag_token() const noexcept
Checks whether the type member is a flag token type.
arg_ptr_opt_t arg
The corresponding argument.
bool operator==(const argument_token &other) const noexcept
Equality operator for comparing argument_token instances.
std::string value
The actual token's value.
bool is_valid_flag_token() const noexcept
Checks whether the token represents a valid flag.
token_type
The token type discriminator.
@ t_value
Represents a value argument.
@ t_flag_secondary
Represents the secondary (-) flag argument.
@ t_flag_primary
Represents the primary (–) flag argument.
uptr_opt_t< detail::argument_base > arg_ptr_opt_t