[issue10423] s/args/options in arpgarse "Upgrading optparse code"

Sandro Tosi report at bugs.python.org
Thu Feb 10 23:21:50 CET 2011


Sandro Tosi <sandro.tosi at gmail.com> added the comment:

Hi Steven, I'm not exactly getting what you're meaning here: are you actually saying to replace every occurrence of 'option' with 'argument' in the whole argparse module doc, or just make it stronger in the mentioned line that what was called previously 'option' is now called 'args' ?

PS: wouldn't it be better to use this form "(options, args) = parser.parse_args()" instead of "options, args = parser.parse_args()" ? optparse doc uses the former, so it should be easy to recognize for those willing to migrate to argparse

----------
nosy: +sandro.tosi
versions: +Python 3.3 -Python 3.2

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


More information about the Python-bugs-list mailing list