Debugger "help <cmd>" : fix formatting.

And specifically for "help brk" - split help across an extra line for better readability
This commit is contained in:
tomcw 2022-03-14 20:50:21 +00:00
parent 169f0b29e8
commit 00668c2668

View File

@ -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