init: dispatchCommand is now responsible for debug CLI dump

This commit is contained in:
Paul Beckingham 2016-04-09 10:45:35 -04:00
parent 340b55e8bc
commit 3a1efc330b

View file

@ -188,6 +188,10 @@ int dispatchCommand (
{ {
int status {0}; int status {0};
// Debug output.
if (rules.getBoolean ("debug"))
std::cout << cli.dump () << "\n";
// Dispatch to the right command function. // Dispatch to the right command function.
std::string command = cli.getCommand (); std::string command = cli.getCommand ();
if (command != "") if (command != "")