ArgStep
struct ArgStepRepresents one parser callback step.
Use the extension methods on ArgStep to match the current argument, declare modes and options, insert additional arguments, or fail the parse.
Instance fields
Instance members
Terminates parsing with a custom failure.
The message is written to the configured error writer and parsing stops immediately with CUSTOM_FAILURE and the supplied exit code.
Returns true during the parser's final completion step.
Most applications do not need to call this directly; it is useful when a parser callback wants to run its own final validation after all arguments and inserted arguments have been processed.
Inserts arguments at the current parse position and parses them immediately.
This is intended for response-file style expansion. Inserted arguments are parsed before the parser resumes the original argument stream. When called during completion, inserted arguments are parsed immediately without causing an additional completion callback.
Attempts to match the current argument as a bool option.
Bool options accept a present/absent value. In GNU syntax, a noPrefix option also accepts --no-name for false. Bool options may be matched more than once; each match calls the callback normally with the current value.
Attempts to match a subcommand mode.
A mode is a first positional command such as build or test. Options and operands can opt into specific modes through ArgOption.modes.
Generated with campc 0.11.0-preview.1.