mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdHelp: Removed log
This commit is contained in:
parent
6f0a683398
commit
814ec56468
3 changed files with 10 additions and 16 deletions
|
@ -69,7 +69,7 @@ int CmdHelpUsage ()
|
|||
//
|
||||
// Strict 80-character limit.
|
||||
// Provide examples where appropriate - enough to cover all uses.
|
||||
int CmdHelp (CLI& cli, Log& log)
|
||||
int CmdHelp (CLI& cli)
|
||||
{
|
||||
auto words = cli.getWords ();
|
||||
if (words.size ())
|
||||
|
|
|
@ -33,11 +33,6 @@
|
|||
#include <Extensions.h>
|
||||
#include <Log.h>
|
||||
|
||||
int CmdExtensions ( Rules&, Extensions& );
|
||||
int CmdGaps ( );
|
||||
int CmdHelpUsage ( );
|
||||
int CmdHelp (CLI&, Log&);
|
||||
int CmdImport ( );
|
||||
int CmdReport (CLI&, Rules&, Database&, Extensions&, Log&);
|
||||
int CmdStart (CLI&, Rules&, Database&, Log&);
|
||||
int CmdStop (CLI&, Rules&, Database&, Log&);
|
||||
|
@ -51,5 +46,10 @@ int CmdDefault ( Rules&, Database& );
|
|||
int CmdDefine (CLI&, Rules&, Database& );
|
||||
int CmdDiagnostics ( Rules&, Database&, Extensions&);
|
||||
int CmdExport (CLI&, Rules&, Database& );
|
||||
int CmdExtensions ( Rules&, Extensions&);
|
||||
int CmdGaps ( );
|
||||
int CmdHelpUsage ( );
|
||||
int CmdHelp (CLI& );
|
||||
int CmdImport ( );
|
||||
|
||||
#endif
|
||||
|
|
14
src/init.cpp
14
src/init.cpp
|
@ -206,22 +206,16 @@ int dispatchCommand (
|
|||
{
|
||||
// These signatures are æxpected to be all different, therefore no
|
||||
// command to fn mapping.
|
||||
else if (command == "extensions") status = CmdExtensions ( rules, extensions );
|
||||
else if (command == "gaps") status = CmdGaps ( );
|
||||
else if (command == "help") status = CmdHelp (cli, log);
|
||||
else if (command == "import") status = CmdImport ( );
|
||||
else if (command == "report") status = CmdReport (cli, rules, database, extensions, log);
|
||||
else if (command == "start") status = CmdStart (cli, rules, database, log);
|
||||
else if (command == "stop") status = CmdStop (cli, rules, database, log);
|
||||
else if (command == "tags") status = CmdTags ( rules, database, log);
|
||||
else if (command == "track") status = CmdTrack (cli, rules, database, log);
|
||||
else if (command == "undo") status = CmdUndo ( );
|
||||
if (command == "clear") status = CmdClear ( );
|
||||
else if (command == "config") status = CmdConfig ( );
|
||||
else if (command == "continue") status = CmdContinue ( rules, database );
|
||||
else if (command == "define") status = CmdDefine (cli, rules, database );
|
||||
else if (command == "diagnostics") status = CmdDiagnostics ( rules, database, extensions);
|
||||
else if (command == "export") status = CmdExport (cli, rules, database );
|
||||
else if (command == "extensions") status = CmdExtensions ( rules, extensions);
|
||||
else if (command == "gaps") status = CmdGaps ( );
|
||||
else if (command == "help") status = CmdHelp (cli );
|
||||
else if (command == "import") status = CmdImport ( );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue