From 08f0bde2580142963201febe8a68cb5df29a9392 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 20 Mar 2016 09:51:46 -0400 Subject: [PATCH] init: Propagated rules to CmdDiagnostics --- src/commands/CmdDiagnostics.cpp | 2 +- src/commands/commands.h | 2 +- src/init.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/CmdDiagnostics.cpp b/src/commands/CmdDiagnostics.cpp index 52656976..de15596d 100644 --- a/src/commands/CmdDiagnostics.cpp +++ b/src/commands/CmdDiagnostics.cpp @@ -36,7 +36,7 @@ #endif //////////////////////////////////////////////////////////////////////////////// -int CmdDiagnostics (Database& database, Log& log) +int CmdDiagnostics (Rules& rules, Database& database, Log& log) { std::stringstream out; out << "\n" diff --git a/src/commands/commands.h b/src/commands/commands.h index 8d6e6b35..2caeff27 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -39,7 +39,7 @@ int CmdConfig (); int CmdContinue (); int CmdDefault (); int CmdDefine (Rules&); -int CmdDiagnostics (Database&, Log&); +int CmdDiagnostics (Rules&, Database&, Log&); int CmdExport (); int CmdExtensions (Rules&, Extensions&); int CmdGaps (); diff --git a/src/init.cpp b/src/init.cpp index 031c08c5..17572fa0 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -196,7 +196,7 @@ int dispatchCommand ( else if (closeEnough (allCommands[1], args[1], 2)) status = CmdConfig (); else if (closeEnough (allCommands[2], args[1], 2)) status = CmdContinue (); else if (closeEnough (allCommands[3], args[1], 2)) status = CmdDefine (rules); - else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDiagnostics (database, log); + else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDiagnostics (rules, database, log); else if (closeEnough (allCommands[5], args[1], 2)) status = CmdExport (); else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExtensions (rules, extensions); else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps ();