getArg

Undocumented in source. Be warned that the author may not have intended to support it.
ref
getArg
(
alias ArgIntrospectT
)
(
ref return ArgIntrospectT.CommandT command
)

Examples

import jcli.introspect.gather;

@CommandDefault()
static struct T
{
    @ArgPositional
    int a;
}

T t = T(360);
enum Info = commandInfoFor!T();
assert(getArg!(Info.positionalArgs[0])(t) == 360);

static assert(__traits(identifier, getArgSymbol!(Info.positionalArgs[0])) == "a");

Meta