ArgumentInfo

Contains information about command's argument.

Members

Variables

action
CommandArgAction action;

The binding action performed to create the argument's value.

actionFunc
ArgumentActionFunc!CommandT actionFunc;

The function used to perform the binding action for this argument.

existence
CommandArgExistence existence;

Describes the existence properties for this argument.

group
CommandArgGroup group;

The user-defined CommandArgGroup, this is .init for the default group.

identifier
string identifier;

The result of __traits(identifier) on the argument's symbol.

parseScheme
CommandArgParseScheme parseScheme;

Describes how this argument is to be parsed.

uda
UDA uda;

The UDA attached to the argument's symbol.

Parameters

UDA

The UDA that defines the argument (e.g. @CommandNamedArg, @CommandPositionalArg)

CommandT

The command type that this argument belongs to.

See Also

jaster.cli.infogen.gen.getCommandInfoFor for generating instances of this struct.

Meta