ArgMatch struct

Values captured for one argument.

Owned by CmdMatches.

Public variables

const ProgramArg* spec
Schema entry in the command's args array.
bool explicit_present
True when the user passed this argument.
size_t count
Occurrence count, or number of stored values.
const char** values
Stored strings, or NULL when empty.
size_t n_values
Number of pointers stored in values.
size_t capacity
Allocated pointer slots of values.

Variable documentation

size_t ArgMatch::capacity

Allocated pointer slots of values.

May exceed n_values.