mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Formatting fix
This commit is contained in:
parent
aa9fdee45d
commit
b99d2b6331
1 changed files with 11 additions and 11 deletions
22
src/init.cpp
22
src/init.cpp
|
@ -181,17 +181,17 @@ int dispatchCommand (
|
|||
autoComplete (argv[1], allCommands, matches);
|
||||
if (matches.size () == 1)
|
||||
{
|
||||
// These signatures are æxpected to be all different, therefore no
|
||||
// command to fn mapping.
|
||||
if (closeEnough (allCommands[0], argv[1], 2)) status = CmdHelp ();
|
||||
else if (closeEnough (allCommands[1], argv[1], 2)) status = CmdClear ();
|
||||
else if (closeEnough (allCommands[2], argv[1], 2)) status = CmdDefine (rules);
|
||||
else if (closeEnough (allCommands[3], argv[1], 2)) status = CmdExport ();
|
||||
else if (closeEnough (allCommands[4], argv[1], 2)) status = CmdImport ();
|
||||
else if (closeEnough (allCommands[5], argv[1], 2)) status = CmdReport ();
|
||||
else if (closeEnough (allCommands[6], argv[1], 2)) status = CmdStart ();
|
||||
else if (closeEnough (allCommands[7], argv[1], 2)) status = CmdStop ();
|
||||
else if (closeEnough (allCommands[8], argv[1], 2)) status = CmdTrack ();
|
||||
// These signatures are æxpected to be all different, therefore no
|
||||
// command to fn mapping.
|
||||
if (closeEnough (allCommands[0], argv[1], 2)) status = CmdHelp ();
|
||||
else if (closeEnough (allCommands[1], argv[1], 2)) status = CmdClear ();
|
||||
else if (closeEnough (allCommands[2], argv[1], 2)) status = CmdDefine (rules);
|
||||
else if (closeEnough (allCommands[3], argv[1], 2)) status = CmdExport ();
|
||||
else if (closeEnough (allCommands[4], argv[1], 2)) status = CmdImport ();
|
||||
else if (closeEnough (allCommands[5], argv[1], 2)) status = CmdReport ();
|
||||
else if (closeEnough (allCommands[6], argv[1], 2)) status = CmdStart ();
|
||||
else if (closeEnough (allCommands[7], argv[1], 2)) status = CmdStop ();
|
||||
else if (closeEnough (allCommands[8], argv[1], 2)) status = CmdTrack ();
|
||||
}
|
||||
else if (matches.size () == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue