homepage

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, eric.araujo, htnieman, manveru, paul.j3, tshepang, vajrasky, xuanji, ysj.ray
Date 2013年07月15日.03:58:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373860719.14.0.681699472704.issue11874@psf.upfronthosting.co.za>
In-reply-to
Content
I just filed a patch with http://bugs.python.org/issue10984 (argparse add_mutually_exclusive_group should accept existing arguments to register conflicts) that includes the latest patch from this issue. I tweaked it so _format_actions_usage only returns arg_parts. The block of _re. statements (# clean up separators for mutually exclusive groups) are in a nested function so it can be applied to each of the parts.
In that issue I wrote a custom formatter that handles groups even if they share actions, or the action order does not match definition order. For that it is easier to work with the arg_parts as generated here rather than the whole usage line.
History
Date User Action Args
2013年07月15日 03:58:39paul.j3setrecipients: + paul.j3, bethard, eric.araujo, ysj.ray, xuanji, tshepang, htnieman, manveru, vajrasky
2013年07月15日 03:58:39paul.j3setmessageid: <1373860719.14.0.681699472704.issue11874@psf.upfronthosting.co.za>
2013年07月15日 03:58:39paul.j3linkissue11874 messages
2013年07月15日 03:58:38paul.j3create

AltStyle によって変換されたページ (->オリジナル) /