init: Propagates log to CmdHelp

This commit is contained in:
Paul Beckingham 2016-03-19 12:24:24 -04:00
parent d0e69de848
commit 6851607fa8
3 changed files with 5 additions and 5 deletions

View file

@ -26,8 +26,7 @@
#include <cmake.h>
#include <iostream>
#include <vector>
#include <string>
#include <commands.h>
////////////////////////////////////////////////////////////////////////////////
int CmdHelpUsage ()
@ -46,7 +45,8 @@ int CmdHelpUsage ()
}
////////////////////////////////////////////////////////////////////////////////
int CmdHelp (const std::vector <std::string>& args)
// Strict 80-character limit.
int CmdHelp (const std::vector <std::string>& args, Log& log)
{
std::cout << "# help\n";
return 0;

View file

@ -43,7 +43,7 @@ int CmdExport ();
int CmdExtension ();
int CmdGaps ();
int CmdHelpUsage ();
int CmdHelp (const std::vector <std::string>&);
int CmdHelp (const std::vector <std::string>&, Log&);
int CmdLog (const std::vector <std::string>&, Log&);
int CmdImport ();
int CmdReport ();

View file

@ -199,7 +199,7 @@ int dispatchCommand (
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[0], args[1], 2)) status = CmdHelp (args, log);
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 ();