[PATCH] help_on_command should not overwrite outfile

Robert Widhopf-Fenk hack at robf.de
Sun Nov 13 23:51:52 GMT 2005


Calling
  help_on_command(cmdname, sys.stderr)
will write the options help to stdout due to the following line
  help_on_command_options(cmd_object, outfile=None)
which is not what it IMHO should do.

=== modified file 'bzrlib/help.py'
--- bzrlib/help.py
+++ bzrlib/help.py
@@ -113,7 +113,7 @@
     outfile.write(doc)
     if doc[-1] != '\n':
         outfile.write('\n')
-    help_on_command_options(cmd_object, outfile=None)
+    help_on_command_options(cmd_object, outfile)
 
 
 def help_on_command_options(cmd, outfile=None):





More information about the bazaar mailing list