mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: No longer calls CmdDefault is there are arguments provided
This commit is contained in:
parent
b5a4b3476c
commit
ee2b13b323
1 changed files with 6 additions and 1 deletions
|
@ -244,10 +244,15 @@ int dispatchCommand (
|
||||||
else if (command == "undo") status = CmdUndo ( );
|
else if (command == "undo") status = CmdUndo ( );
|
||||||
else status = CmdReport (cli, rules, database, extensions);
|
else status = CmdReport (cli, rules, database, extensions);
|
||||||
}
|
}
|
||||||
else
|
else if (cli._args.size () == 1)
|
||||||
{
|
{
|
||||||
status = CmdDefault (rules, database);
|
status = CmdDefault (rules, database);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
std::cout << "No command specified.\n";
|
||||||
|
status = 1;
|
||||||
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue