|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Context passed to each action function during pipeline execution. More...
#include <action.hh>
Public Attributes | |
| size_t | index {} |
| Zero-based index into argv of the current token. | |
| size_t | occurrences {} |
| Number of times the parent option token has appeared. | |
| size_t | nargs {} |
| Number of values in this option occurrence. | |
| size_t | value_index {} |
| 0-based index of current value in this occurrence. | |
| size_t | total_values {} |
| Total values across all occurrences of this option. | |
| std::reference_wrapper< T > | arg {} |
| Reference to the argument's storage value. | |
Context passed to each action function during pipeline execution.
Provides access to the current argv position, how many times the parent option has been seen, how many values are in this occurrence, the 0-based index of the current value, the total values across all occurrences, and a reference to the argument's storage value.
| T | The storage type of the argument; void for intermediate (non-terminal) actions. |
| std::reference_wrapper<T> cli::ActionCtx< T >::arg {} |
| size_t cli::ActionCtx< T >::index {} |
| size_t cli::ActionCtx< T >::nargs {} |
| size_t cli::ActionCtx< T >::occurrences {} |
| size_t cli::ActionCtx< T >::total_values {} |
| size_t cli::ActionCtx< T >::value_index {} |