[New-bugs-announce] [issue19462] Add remove_argument() method to argparse.ArgumentParser

Artem Ustinov report at bugs.python.org
Thu Oct 31 18:32:58 CET 2013


New submission from Artem Ustinov:

In order to migrate from optparse to argparse we need to have an ability to substitute anguments, e.g. remove and then create.

In our framework we use the command line utility base class and then inherit the particular tools from it. The parser in base class uses add_argument() to populate the general argument list but for some tools it is needed to modify the inherited arguments set and make some arguments to have the modified meaning.

With optparse we've just used remove_option() and then added the modified one with add_option() but argparse currently does not have this functionality.

For the purpose above we just need to have remove_argument() or modify_argument() methods in orgparse

----------
components: Library (Lib)
messages: 201832
nosy: ustinov
priority: normal
severity: normal
status: open
title: Add remove_argument() method to argparse.ArgumentParser
type: enhancement
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19462>
_______________________________________


More information about the New-bugs-announce mailing list