[Pkg-bazaar-commits] ./bzr/unstable r473: - Don't lose first line of command help!

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:20:03 UTC 2009


------------------------------------------------------------
revno: 473
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-05-11 16:20:05 +1000
message:
  - Don't lose first line of command help!
modified:
  bzrlib/help.py
-------------- next part --------------
=== modified file 'bzrlib/help.py'
--- a/bzrlib/help.py	2005-05-11 01:25:52 +0000
+++ b/bzrlib/help.py	2005-05-11 06:20:05 +0000
@@ -99,20 +99,13 @@
     if doc == None:
         raise NotImplementedError("sorry, no detailed help yet for %r" % cmdname)
 
-    if '\n' in doc:
-        short, rest = doc.split('\n', 1)
-    else:
-        short = doc
-        rest = ''
-
     print 'usage:', command_usage(topic, cmdclass)
 
     if cmdclass.aliases:
         print 'aliases: ' + ', '.join(cmdclass.aliases)
     
-    if rest:
-        print rest
-
+    print doc
+    
     help_on_option(cmdclass.takes_options)
 
 



More information about the Pkg-bazaar-commits mailing list