This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author roysmith
Recipients roysmith
Date 2012-12-05.22:03:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354745001.59.0.580615965604.issue16623@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-12-05 22:03:21roysmithsetrecipients: + roysmith
2012-12-05 22:03:21roysmithsetmessageid: <1354745001.59.0.580615965604.issue16623@psf.upfronthosting.co.za>
2012-12-05 22:03:21roysmithlinkissue16623 messages
2012-12-05 22:03:21roysmithcreate