handle global --help option
authorAlexander Solovyov <piranha@piranha.org.ua>
Fri, 26 Jun 2009 09:55:34 +0300
changeset 15 9477d21dc845
parent 14 4d1b80fd0e28
child 16 4c5c6e56c903
handle global --help option
fancycmd.py
--- a/fancycmd.py	Fri Jun 26 09:49:03 2009 +0300
+++ b/fancycmd.py	Fri Jun 26 09:55:34 2009 +0300
@@ -102,7 +102,7 @@
     ui.quiet = globaloptions['quiet']
 
     if globaloptions['help']:
-        pass # help
+        return cmdtable['help'][0](ui, cmd)
     elif not cmd:
         return cmdtable['help'][0](ui, 'shortlist')