From 00668c26687a190ac12b617c9f5430af1192b981 Mon Sep 17 00:00:00 2001 From: tomcw Date: Mon, 14 Mar 2022 20:50:21 +0000 Subject: [PATCH] Debugger "help " : fix formatting. And specifically for "help brk" - split help across an extra line for better readability --- source/Debugger/Debugger_Help.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/source/Debugger/Debugger_Help.cpp b/source/Debugger/Debugger_Help.cpp index 2a767df0..66faedd2 100644 --- a/source/Debugger/Debugger_Help.cpp +++ b/source/Debugger/Debugger_Help.cpp @@ -801,8 +801,8 @@ Update_t CmdHelpSpecific (int nArgs) const char *const pHelp = pCommand->pHelpSummary; if (pHelp) { - std::string strText = StrFormat((bCategory) ? "%s%8s%s%s%s, " - : "%s%s%s%s%s, ", + std::string strText = StrFormat((bCategory) ? "%s%8s%s, %s%s" + : "%s%s%s, %s%s", CHC_COMMAND, pCommand->m_sName, CHC_ARG_SEP, CHC_DEFAULT, pHelp); //ConsoleBufferPush( strText.c_str() ); @@ -937,15 +937,17 @@ Update_t CmdHelpSpecific (int nArgs) break; // Breakpoints case CMD_BREAK_INVALID: - ConsoleColorizePrintFormat( " Usage: [%s%s | %s%s] | [# | # %s%s | # %s%s]" + ConsoleColorizePrintFormat( " Usage: [%s%s | %s%s]" , CHC_COMMAND - , g_aParameters[ PARAM_ON ].m_sName + , g_aParameters[PARAM_ON].m_sName , CHC_COMMAND - , g_aParameters[ PARAM_OFF ].m_sName + , g_aParameters[PARAM_OFF].m_sName + ); + ConsoleColorizePrintFormat(" Usage: [# | # %s%s | # %s%s]" , CHC_COMMAND - , g_aParameters[ PARAM_ON ].m_sName + , g_aParameters[PARAM_ON].m_sName , CHC_COMMAND - , g_aParameters[ PARAM_OFF ].m_sName + , g_aParameters[PARAM_OFF].m_sName ); ConsoleColorizePrintFormat( " Usage: [%s%s %s%s | %s%s %s%s]" , CHC_COMMAND