diff --git a/src/commands/CmdLog.cpp b/src/commands/CmdLog.cpp index 0967e240..13c153e8 100644 --- a/src/commands/CmdLog.cpp +++ b/src/commands/CmdLog.cpp @@ -26,11 +26,13 @@ #include #include +#include +#include #include //////////////////////////////////////////////////////////////////////////////// // TODO This may be removed. -int CmdLog (Log& log) +int CmdLog (const std::vector & args, Log& log) { log.write ("debug", "---- 8< ----"); diff --git a/src/commands/commands.h b/src/commands/commands.h index 5049ffaa..6d09691f 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -30,6 +30,8 @@ #include #include #include +#include +#include int CmdClear (); int CmdConfig (); @@ -42,7 +44,7 @@ int CmdExtension (); int CmdGaps (); int CmdHelpUsage (); int CmdHelp (); -int CmdLog (Log&); +int CmdLog (const std::vector &, Log&); int CmdImport (); int CmdReport (); int CmdStart (); diff --git a/src/init.cpp b/src/init.cpp index 140eec0c..05f39d4b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -201,7 +201,7 @@ int dispatchCommand ( else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExport (); else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps (); else if (closeEnough (allCommands[8], args[1], 2)) status = CmdImport (); - else if (closeEnough (allCommands[9], args[1], 2)) status = CmdLog (log); + else if (closeEnough (allCommands[9], args[1], 2)) status = CmdLog (args, log); else if (closeEnough (allCommands[10], args[1], 2)) status = CmdReport (); else if (closeEnough (allCommands[11], args[1], 2)) status = CmdStart (); else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStop ();