ProgramArgs.on

Calls handler if user specified command subcommand.

class ProgramArgs
typeof(this)
on
(
string command
,
scope void delegate handler
)

Examples

auto a = new Program()
     .add(new Command("test"))
     .parse(args);

a.on("test", (a) {
    writeln("Test!");
});

Meta