mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagates log to CmdHelp
This commit is contained in:
parent
d0e69de848
commit
6851607fa8
3 changed files with 5 additions and 5 deletions
|
@ -26,8 +26,7 @@
|
||||||
|
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <commands.h>
|
||||||
#include <string>
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int CmdHelpUsage ()
|
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";
|
std::cout << "# help\n";
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -43,7 +43,7 @@ int CmdExport ();
|
||||||
int CmdExtension ();
|
int CmdExtension ();
|
||||||
int CmdGaps ();
|
int CmdGaps ();
|
||||||
int CmdHelpUsage ();
|
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 CmdLog (const std::vector <std::string>&, Log&);
|
||||||
int CmdImport ();
|
int CmdImport ();
|
||||||
int CmdReport ();
|
int CmdReport ();
|
||||||
|
|
|
@ -199,7 +199,7 @@ int dispatchCommand (
|
||||||
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdDiagnostics (database, log);
|
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[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[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[8], args[1], 2)) status = CmdImport ();
|
||||||
else if (closeEnough (allCommands[9], args[1], 2)) status = CmdLog (args, 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 ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue