Message156262
| Author |
jeffknupp |
| Recipients |
bethard, eric.smith, jeffknupp, kalt, r.david.murray, wt |
| Date |
2012年03月18日.18:14:55 |
| SpamBayes Score |
4.000804e-09 |
| Marked as misclassified |
No |
| Message-id |
<CALnvysJvNPFhpzRTRZOnEFvOL9jgrWYu0aOx15X03u0opDtHeA@mail.gmail.com> |
| In-reply-to |
<1332091973.06.0.223121095397.issue13922@psf.upfronthosting.co.za> |
| Content |
In that case, wouldn't you use 'parse_known_args' instead of 'parse_args'
and pass the remaining arguments to the next script? This case is
explicitly mentioned in the argparse documentation. Again it seems to me
that the meaning of '--' has changed slightly between optparse and
argparse. Whether or not that was correct or intended is perhaps another
isssue.
On Sun, Mar 18, 2012 at 1:32 PM, Eric V. Smith <report@bugs.python.org>wrote:
>
> Eric V. Smith <eric@trueblade.com> added the comment:
>
> I agree with David. It's a bug. I have programs (not using argparse yet)
> that do exactly what he describes.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue13922>
> _______________________________________
> |
|