mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Timew: Added dispatch for all commands
This commit is contained in:
parent
fe201a50f3
commit
2fbe57fdd0
1 changed files with 9 additions and 3 deletions
|
@ -89,9 +89,15 @@ int main (int argc, const char** argv)
|
|||
// TODO Dispatch to commands.
|
||||
if (argc > 1)
|
||||
{
|
||||
// TODO argv[1] is a command.
|
||||
if (closeEnough ("help", argv[1], 2))
|
||||
CmdHelp ();
|
||||
if (closeEnough ("help", argv[1], 2)) CmdHelp ();
|
||||
else if (closeEnough ("clear", argv[1], 2)) CmdClear ();
|
||||
else if (closeEnough ("define", argv[1], 2)) CmdDefine ();
|
||||
else if (closeEnough ("export", argv[1], 2)) CmdExport ();
|
||||
else if (closeEnough ("import", argv[1], 2)) CmdImport ();
|
||||
else if (closeEnough ("report", argv[1], 2)) CmdReport ();
|
||||
else if (closeEnough ("start", argv[1], 2)) CmdStart ();
|
||||
else if (closeEnough ("stop", argv[1], 2)) CmdStop ();
|
||||
else if (closeEnough ("track", argv[1], 2)) CmdTrack ();
|
||||
}
|
||||
else if (argc == 1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue