init: No longer calls CmdDefault is there are arguments provided

This commit is contained in:
Paul Beckingham 2016-04-30 08:27:13 -04:00
parent b5a4b3476c
commit ee2b13b323

View file

@ -244,10 +244,15 @@ int dispatchCommand (
else if (command == "undo") status = CmdUndo ( );
else status = CmdReport (cli, rules, database, extensions);
}
else
else if (cli._args.size () == 1)
{
status = CmdDefault (rules, database);
}
else
{
std::cout << "No command specified.\n";
status = 1;
}
return status;
}