init: Propagated args to CmdLog

This commit is contained in:
Paul Beckingham 2016-03-19 10:14:35 -04:00
parent b19d45fcdc
commit 649f42aabb
3 changed files with 7 additions and 3 deletions

View file

@ -26,11 +26,13 @@
#include <cmake.h> #include <cmake.h>
#include <Log.h> #include <Log.h>
#include <vector>
#include <string>
#include <iostream> #include <iostream>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// TODO This may be removed. // TODO This may be removed.
int CmdLog (Log& log) int CmdLog (const std::vector <std::string>& args, Log& log)
{ {
log.write ("debug", "---- 8< ----"); log.write ("debug", "---- 8< ----");

View file

@ -30,6 +30,8 @@
#include <Rules.h> #include <Rules.h>
#include <Database.h> #include <Database.h>
#include <Log.h> #include <Log.h>
#include <vector>
#include <string>
int CmdClear (); int CmdClear ();
int CmdConfig (); int CmdConfig ();
@ -42,7 +44,7 @@ int CmdExtension ();
int CmdGaps (); int CmdGaps ();
int CmdHelpUsage (); int CmdHelpUsage ();
int CmdHelp (); int CmdHelp ();
int CmdLog (Log&); int CmdLog (const std::vector <std::string>&, Log&);
int CmdImport (); int CmdImport ();
int CmdReport (); int CmdReport ();
int CmdStart (); int CmdStart ();

View file

@ -201,7 +201,7 @@ int dispatchCommand (
else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExport (); else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExport ();
else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps (); else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps ();
else if (closeEnough (allCommands[8], args[1], 2)) status = CmdImport (); 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[10], args[1], 2)) status = CmdReport ();
else if (closeEnough (allCommands[11], args[1], 2)) status = CmdStart (); else if (closeEnough (allCommands[11], args[1], 2)) status = CmdStart ();
else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStop (); else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStop ();