getCommandArguments

Undocumented in source.
package
template getCommandArguments (
alias CommandT
) {}

Members

Aliases

Members
alias Members = staticMap!(toSymbol, __traits(allMembers, CommandT))
Undocumented in source.
getCommandArguments
alias getCommandArguments = Filter!(isSomeArgument, Members)
Undocumented in source.

Examples

@CommandDefault
static struct C 
{
    @CommandNamedArg int a;
    @CommandPositionalArg int b;
    int c;
}

static assert(getCommandArguments!C.length == 2);
static assert(getNamedArguments!C.length == 1);
static assert(getPositionalArguments!C.length == 1);

Meta