diff options
| author | Kate Stone <katherine.stone@apple.com> | 2016-04-21 00:55:20 +0000 |
|---|---|---|
| committer | Kate Stone <katherine.stone@apple.com> | 2016-04-21 00:55:20 +0000 |
| commit | 25d6072adcdb092ef28e3cab2d2419cf2859329f (patch) | |
| tree | c2c26df869a7f33594287c9a326d7502508fedc0 /lldb/source/Commands | |
| parent | 762f8a8549c86014d0f1d73518c1133829202c1c (diff) | |
| download | bcm5719-llvm-25d6072adcdb092ef28e3cab2d2419cf2859329f.tar.gz bcm5719-llvm-25d6072adcdb092ef28e3cab2d2419cf2859329f.zip | |
Added command prefix to new help messages to ensure that they're correctly words in REPL mode.
llvm-svn: 266940
Diffstat (limited to 'lldb/source/Commands')
| -rw-r--r-- | lldb/source/Commands/CommandObjectHelp.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/lldb/source/Commands/CommandObjectHelp.cpp b/lldb/source/Commands/CommandObjectHelp.cpp index 71f280020d3..1e9d0b69b14 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); } } } |

