Permalink
Browse files

Strip usage message only for new lines

  • Loading branch information...
johari committed Oct 16, 2012
1 parent 78d38ee commit a930579c53aadf214963fdcf80034983a6d6a6ee
Showing with 1 addition and 1 deletion.
  1. +1 −1 docopt.py
View
@@ -429,7 +429,7 @@ def formal_usage(printable_usage):
def extras(help, version, options, doc):
if help and any((o.name in ('-h', '--help')) and o.value for o in options):
- print(doc.strip())
+ print(doc.strip("\n"))
sys.exit()
if version and any(o.name == '--version' and o.value for o in options):
print(version)

0 comments on commit a930579

Please sign in to comment.