From 3a1efc330b9f3570ba3673ec3f48034bd4a7a58d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 9 Apr 2016 10:45:35 -0400 Subject: [PATCH] init: dispatchCommand is now responsible for debug CLI dump --- src/init.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index 0c0f734d..af870431 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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 != "")