Message177012
Running this code:
---------------------------------------
import argparse
p = argparse.ArgumentParser()
p.add_argument('--foo',
help=u'This is a very long help string. ex: "--s3\u00A0s3://my.bucket/dir1/dir2"')
p.parse_args()
---------------------------------------
produces:
---------------------------------------
$ ./arg.py --help
usage: arg.py [-h] [--foo FOO]
optional arguments:
-h, --help show this help message and exit
--foo FOO This is a very long help string. ex: "--s3
s3://my.bucket/dir1/dir2"
---------------------------------------
It should not be breaking the line at a non-breaking space. I'm running:
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2 |
|
Date |
User |
Action |
Args |
2012-12-05 22:03:21 | roysmith | set | recipients:
+ roysmith |
2012-12-05 22:03:21 | roysmith | set | messageid: <1354745001.59.0.580615965604.issue16623@psf.upfronthosting.co.za> |
2012-12-05 22:03:21 | roysmith | link | issue16623 messages |
2012-12-05 22:03:21 | roysmith | create | |
|