how do you delete an argument from a parser dynamically?

1,802 views
Skip to first unread message

J

unread,
Jan 14, 2011, 5:37:17 PM1/14/11
to argparse-users
given an argparse parser instance w/ some arguments added, is there a
way to delete/remove an argument defined for it?

thanks.

Steven Bethard

unread,
Jan 16, 2011, 10:08:37 AM1/16/11
to argpars...@googlegroups.com
On Fri, Jan 14, 2011 at 3:37 PM, J <j...@recessnetworks.net> wrote:
> given an argparse parser instance w/ some arguments added, is there a
> way to delete/remove an argument defined for it?

This is not currently supported. Feel free to file a feature request
though at bugs.python.org.

Steve
--
Where did you get that preposterous hypothesis?
Did Steve tell you that?
        --- The Hiphopopotamus

Reply all
Reply to author
Forward
0 new messages