[Lldb-commits] [lldb] r114364 - /lldb/trunk/source/Interpreter/Options.cpp

Caroline Tice ctice at apple.com
Mon Sep 20 14:52:58 PDT 2010


Author: ctice
Date: Mon Sep 20 16:52:58 2010
New Revision: 114364

URL: http://llvm.org/viewvc/llvm-project?rev=114364&view=rev
Log:
Make the short option print out before the long option in the 
command options detailed help section (since it's sorted by short option).


Modified:
    lldb/trunk/source/Interpreter/Options.cpp

Modified: lldb/trunk/source/Interpreter/Options.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/Options.cpp?rev=114364&r1=114363&r2=114364&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/Options.cpp (original)
+++ lldb/trunk/source/Interpreter/Options.cpp Mon Sep 20 16:52:58 2010
@@ -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");





More information about the lldb-commits mailing list