Make the short option print out before the long option in the
command options detailed help section (since it's sorted by short option).
llvm-svn: 114364
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index 57e6893..f5de102 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -572,10 +572,10 @@
strm.EOL();
strm.Indent ();
- strm.Printf ("--%s", full_options_table[i].long_option);
+ strm.Printf ("-%c", full_options_table[i].short_option);
if (full_options_table[i].argument_name != NULL)
strm.Printf (" %s", full_options_table[i].argument_name);
- strm.Printf (" ( -%c", full_options_table[i].short_option);
+ strm.Printf (" ( --%s", full_options_table[i].long_option);
if (full_options_table[i].argument_name != NULL)
strm.Printf (" %s", full_options_table[i].argument_name);
strm.PutCString(" )\n");