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 paul.j3
Recipients bethard, gotgenes, micktwomey, paul.j3
Date 2013-07-12.18:18:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373653104.11.0.981900311177.issue10984@psf.upfronthosting.co.za>
In-reply-to
Content
While playing with some examples, I found that exclusive group formatting has another failure case.  If the usage line is long enough to wrap, optionals and positionals are formatted separately, with positionals appearing on a separate line(s).  That means that if a group includes a positional, it will not be marked.

So (shortening lines for convenience sake), instead of:

    usage: [-h] ... (-a | -b | x)

we get

    usage: [-h] ... [-a] [-b]
           x

This is true even if arguments are added to the group in the normal way.
History
Date User Action Args
2013-07-12 18:18:24paul.j3setrecipients: + paul.j3, bethard, gotgenes, micktwomey
2013-07-12 18:18:24paul.j3setmessageid: <1373653104.11.0.981900311177.issue10984@psf.upfronthosting.co.za>
2013-07-12 18:18:24paul.j3linkissue10984 messages
2013-07-12 18:18:23paul.j3create