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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19462>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to