ArgOption

struct ArgOption

Describes one option, operand, mode-local option, or end-of-flags marker.

Instance fields

escaped string

Description shown in generated help.

bool

Treats following arguments as operands after this declaration matches.

escaped string

Short flag name without a prefix, such as "v" for -v or /v.

bool

Omits this option or operand from generated help.

escaped string

Long flag name without a prefix, such as "verbose" for --verbose or /verbose.

string[]

Modes in which this option or operand applies. Leave empty to apply everywhere.

bool

Allows repeated matches for text, unsigned integer, and operand declarations.

escaped string

Display name for the option value or operand in generated help.

bool

Allows bool long options to accept --no-name in GNU syntax.

bool

Requires this option or operand to be matched before parsing succeeds.

ArgSyntax

Syntax in which this option applies. AUTO means the parser's active syntax.

Generated with campc 0.11.0-preview.1.