[Question] Setting multiple commands with builder API
GuerrillaCoder opened this issue · comments
GuerrillaCoder commented
Is it possible to do something like this:
app.Command("command1", setCmd =>
{
//...
setCmd.OnExecute(() =>
{
//..
});
});
app.Command("command2", setCmd =>
{
//...
setCmd.OnExecute(() =>
{
//..
});
});
When I try that it only recognizes the first command.
I want to have multiple top level commands and then multiple nested commands but it seems to only allow one top level command and ignores subsequent ones.
GuerrillaCoder commented
I don't know why but it started working.