From: Kate Stone Date: Thu, 21 Apr 2016 00:55:20 +0000 (+0000) Subject: Added command prefix to new help messages to ensure that they're correctly words... X-Git-Tag: llvmorg-3.9.0-rc1~8520 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25d6072adcdb092ef28e3cab2d2419cf2859329f;p=platform%2Fupstream%2Fllvm.git Added command prefix to new help messages to ensure that they're correctly words in REPL mode. llvm-svn: 266940 --- diff --git a/lldb/source/Commands/CommandObjectHelp.cpp b/lldb/source/Commands/CommandObjectHelp.cpp index 71f2800..1e9d0b6 100644 --- a/lldb/source/Commands/CommandObjectHelp.cpp +++ b/lldb/source/Commands/CommandObjectHelp.cpp @@ -35,22 +35,16 @@ CommandObjectHelp::GenerateAdditionalHelpAvenuesMessage (Stream *s, if (s && command && *command) { s->Printf("'%s' is not a known command.\n", command); - if (prefix && *prefix) - { - s->Printf("Try '%shelp' to see a current list of commands.\n", prefix); - } - else - { - s->PutCString("Try 'help' to see a current list of commands.\n"); - } - + s->Printf("Try '%shelp' to see a current list of commands.\n", prefix ? prefix : ""); if (include_apropos) { - s->Printf("Try 'apropos %s' for a list of related commands.\n", subcommand ? subcommand : command); + s->Printf("Try '%sapropos %s' for a list of related commands.\n", + prefix ? prefix : "", subcommand ? subcommand : command); } if (include_type_lookup) { - s->Printf("Try 'type lookup %s' for information on types, methods, functions, modules, etc.", subcommand ? subcommand : command); + s->Printf("Try '%stype lookup %s' for information on types, methods, functions, modules, etc.", + prefix ? prefix : "", subcommand ? subcommand : command); } } }