Author bethard
Recipients andersk, bethard, davidben, drm, eric.araujo, eric.smith, gdb, nelhage, r.david.murray
Date 2011-02-07.07:58:28
SpamBayes Score 4.00193e-09
Marked as misclassified No
Message-id <1297065509.08.0.740714994543.issue9334@psf.upfronthosting.co.za>
In-reply-to
Content
@√Čric: yes, thanks!

@Anders: The reason the current implementation gives you the behavior you don't want is that the first thing it does is scan the args list for things that look like flags (based on prefix_chars). It assumes that everything that looks like a flag is intended to be one, before it ever looks at how many arguments the flag before it takes or anything like that. This is the source of your problem - argparse assumes "-safe" is a flag, and as a result, there is no argument for "--asciidoc-opts'. So perhaps a better name would be something like dont_assume_everything_that_looks_like_a_flag_is_intended_to_be_one. ;-)
History
Date User Action Args
2011-02-07 07:58:29bethardsetrecipients: + bethard, eric.smith, eric.araujo, r.david.murray, andersk, gdb, nelhage, drm, davidben
2011-02-07 07:58:29bethardsetmessageid: <1297065509.08.0.740714994543.issue9334@psf.upfronthosting.co.za>
2011-02-07 07:58:28bethardlinkissue9334 messages
2011-02-07 07:58:28bethardcreate