Message156262
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>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2012-03-18 18:14:56 | jeffknupp | set | recipients:
+ jeffknupp, bethard, eric.smith, kalt, r.david.murray, wt |
2012-03-18 18:14:56 | jeffknupp | link | issue13922 messages |
2012-03-18 18:14:55 | jeffknupp | create | |
|