global options in help output

TK Soh teekaysoh at yahoo.com
Wed Aug 24 19:31:30 CDT 2005


The global options in help output seemed a bit cluttered to me. This patch
might make it easier for our eyes.

# HG changeset patch
# User TK Soh <tksoh at freescale.com>
# Node ID 7c8ba35ab54cefeb7898a3be85d64780514ce77e
# Parent  836667830fee3fba9afb4efe315b531d9c773d86
help: show global options in alphabetical order.

diff -r 836667830fee -r 7c8ba35ab54c mercurial/commands.py
--- a/mercurial/commands.py     Wed Aug 24 03:21:52 2005
+++ b/mercurial/commands.py     Thu Aug 25 00:31:57 2005
@@ -1449,16 +1449,16 @@
     "version": (show_version, [], 'hg version'),
     }

-globalopts = [('v', 'verbose', None, 'verbose mode'),
+globalopts = [('', 'cwd', '', 'change working directory'),
               ('', 'debug', None, 'debug mode'),
+              ('', 'profile', None, 'profile'),
               ('q', 'quiet', None, 'quiet mode'),
-              ('', 'profile', None, 'profile'),
-              ('', 'cwd', '', 'change working directory'),
               ('R', 'repository', "", 'repository root directory'),
+              ('', 'time', None, 'time how long the command takes'),
               ('', 'traceback', None, 'print traceback on exception'),
+              ('v', 'verbose', None, 'verbose mode'),
+              ('', 'version', None, 'output version information and exit'),
               ('y', 'noninteractive', None, 'run non-interactively'),
-              ('', 'version', None, 'output version information and exit'),
-              ('', 'time', None, 'time how long the command takes'),
              ]

 norepo = "clone init version help debugindex debugindexdot paths"



		
__________________________________ 
Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


More information about the Mercurial mailing list