[lldb] Remove indentation before help output.
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 15 Jun 2020 16:25:33 +0000 (09:25 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 15 Jun 2020 16:27:17 +0000 (09:27 -0700)
This patch remove the indentation before the command help output.
Supposedly it was meant to be aligned with the different subcommands.

Differential revision: https://reviews.llvm.org/D81783

lldb/source/Interpreter/CommandObject.cpp

index 64a46e3..538f7a1 100644 (file)
@@ -849,12 +849,11 @@ void CommandObject::GenerateHelpText(CommandReturnObject &result) {
 
 void CommandObject::GenerateHelpText(Stream &output_strm) {
   CommandInterpreter &interpreter = GetCommandInterpreter();
+  std::string help_text(GetHelp());
   if (WantsRawCommandString()) {
-    std::string help_text(GetHelp());
     help_text.append("  Expects 'raw' input (see 'help raw-input'.)");
-    interpreter.OutputFormattedHelpText(output_strm, "", "", help_text, 1);
-  } else
-    interpreter.OutputFormattedHelpText(output_strm, "", "", GetHelp(), 1);
+  }
+  interpreter.OutputFormattedHelpText(output_strm, "", help_text);
   output_strm << "\nSyntax: " << GetSyntax() << "\n";
   Options *options = GetOptions();
   if (options != nullptr) {