Make the short option print out before the long option in the
command options detailed help section (since it's sorted by short option).
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@114364 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/Options.cpp b/source/Interpreter/Options.cpp
index 57e6893..f5de102 100644
--- a/source/Interpreter/Options.cpp
+++ b/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");