forked from OSchip/llvm-project
parent
3cb86272fc
commit
03c9f3642a
|
@ -257,7 +257,7 @@ void CommandObjectMultiword::AproposAllSubCommands(llvm::StringRef prefix,
|
|||
CommandObject *sub_cmd_obj = pos->second.get();
|
||||
StreamString complete_command_name;
|
||||
|
||||
complete_command_name.Printf("%s %s", prefix, command_name);
|
||||
complete_command_name << prefix << " " << command_name;
|
||||
|
||||
if (sub_cmd_obj->HelpTextContainsWord(search_word)) {
|
||||
commands_found.AppendString(complete_command_name.GetData());
|
||||
|
|
|
@ -2245,7 +2245,7 @@ void CommandInterpreter::HandleCommands(const StringList &commands,
|
|||
|
||||
if (options.GetPrintResults()) {
|
||||
if (tmp_result.Succeeded())
|
||||
result.AppendMessageWithFormat("%s", tmp_result.GetOutputData());
|
||||
result.AppendMessage(tmp_result.GetOutputData());
|
||||
}
|
||||
|
||||
if (!success || !tmp_result.Succeeded()) {
|
||||
|
|
|
@ -862,7 +862,7 @@ void CommandObject::GenerateHelpText(Stream &output_strm) {
|
|||
1);
|
||||
} else
|
||||
interpreter.OutputFormattedHelpText(output_strm, "", "", GetHelp(), 1);
|
||||
output_strm.Printf("\nSyntax: %s\n", GetSyntax());
|
||||
output_strm << "\nSyntax: " << GetSyntax() << "\n";
|
||||
Options *options = GetOptions();
|
||||
if (options != nullptr) {
|
||||
options->GenerateOptionUsage(
|
||||
|
|
Loading…
Reference in New Issue