Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Strip usage message only for new lines
  • Loading branch information
johari committed Oct 16, 2012
1 parent 78d38ee commit a930579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docopt.py
Expand Up @@ -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)
Expand Down

0 comments on commit a930579

Please sign in to comment.