[Pkg-bazaar-commits] ./bzr/unstable r159: bzr commit --help now works

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:44:07 UTC 2009


------------------------------------------------------------
revno: 159
committer: mbp at sourcefrog.net
timestamp: Fri 2005-04-01 14:04:04 +1000
message:
  bzr commit --help now works
modified:
  NEWS
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2005-03-31 05:02:20 +0000
+++ b/NEWS	2005-04-01 04:04:04 +0000
@@ -9,6 +9,9 @@
     * New "directories" internal command lists versioned directories
       in the tree.
 
+    * Can now say "bzr commit --help".
+
+
 
 
 bzr-0.0.2  "black cube"  2003-03-31

=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-04-01 04:38:28 +0000
+++ b/bzrlib/commands.py	2005-04-01 04:04:04 +0000
@@ -823,7 +823,10 @@
         if 'help' in opts:
             # TODO: pass down other arguments in case they asked for
             # help on a command name?
-            cmd_help()
+            if args:
+                cmd_help(args[0])
+            else:
+                cmd_help()
             return 0
         elif 'version' in opts:
             cmd_version()



More information about the Pkg-bazaar-commits mailing list