diff --git a/src/commands/CmdHelp.cpp b/src/commands/CmdHelp.cpp index fb3b0cb8..fa0c989a 100644 --- a/src/commands/CmdHelp.cpp +++ b/src/commands/CmdHelp.cpp @@ -26,6 +26,8 @@ #include #include +#include +#include //////////////////////////////////////////////////////////////////////////////// int CmdHelpUsage () @@ -44,7 +46,7 @@ int CmdHelpUsage () } //////////////////////////////////////////////////////////////////////////////// -int CmdHelp () +int CmdHelp (const std::vector & args) { std::cout << "# help\n"; return 0; diff --git a/src/commands/commands.h b/src/commands/commands.h index 6d09691f..8985cf9e 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -43,7 +43,7 @@ int CmdExport (); int CmdExtension (); int CmdGaps (); int CmdHelpUsage (); -int CmdHelp (); +int CmdHelp (const std::vector &); int CmdLog (const std::vector &, Log&); int CmdImport (); int CmdReport (); diff --git a/src/init.cpp b/src/init.cpp index 05f39d4b..b5e055bb 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -192,14 +192,14 @@ int dispatchCommand ( { // These signatures are æxpected to be all different, therefore no // command to fn mapping. - if (closeEnough (allCommands[0], args[1], 2)) status = CmdHelp (); - else if (closeEnough (allCommands[1], args[1], 2)) status = CmdClear (); + if (closeEnough (allCommands[1], args[1], 2)) status = CmdClear (); else if (closeEnough (allCommands[2], args[1], 2)) status = CmdConfig (); else if (closeEnough (allCommands[3], args[1], 2)) status = CmdContinue (); else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDefine (rules); else if (closeEnough (allCommands[5], args[1], 2)) status = CmdDiagnostics (database, log); else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExport (); else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps (); + else if (closeEnough (allCommands[0], args[1], 2)) status = CmdHelp (args); else if (closeEnough (allCommands[8], args[1], 2)) status = CmdImport (); else if (closeEnough (allCommands[9], args[1], 2)) status = CmdLog (args, log); else if (closeEnough (allCommands[10], args[1], 2)) status = CmdReport ();