mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: dispatchCommand is now responsible for debug CLI dump
This commit is contained in:
parent
340b55e8bc
commit
3a1efc330b
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,10 @@ int dispatchCommand (
|
|||
{
|
||||
int status {0};
|
||||
|
||||
// Debug output.
|
||||
if (rules.getBoolean ("debug"))
|
||||
std::cout << cli.dump () << "\n";
|
||||
|
||||
// Dispatch to the right command function.
|
||||
std::string command = cli.getCommand ();
|
||||
if (command != "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue