@CommandDefault static struct S { @ArgPositional string str; } alias Info = commandInfoFor!S; enum Param = Info.positionalArgs[0]; S s; assert(ArgBinder!().bind!Param("hello", s).isOk); assert(s.str == "hello");
See Implementation