[New-bugs-announce] [issue10423] s/args/options in arpgarse "Upgrading optparse code"

Steven Bethard report at bugs.python.org
Mon Nov 15 11:30:35 CET 2010


New submission from Steven Bethard <steven.bethard at gmail.com>:

>From a personal email:

----------------------------------------------------------------------
I'm not signed up for all the Python issue tracking stuff, but thought I'd let you know about a problem with the argparse doc page:

     http://docs.python.org/library/argparse.html

It says at the end:

     Replace options, args = parser.parse_args() with args = parser.parse_args() and add additional ArgumentParser.add_argument() calls for the positional arguments.

But I think it should be options = parser.parse_args(), not args.
----------------------------------------------------------------------

They're not options, so I don't like encouraging people to continue to call them options, but the docs should at least make clear that the namespace object that used to be called "options" is now called "args".

----------
assignee: docs at python
components: Documentation
messages: 121219
nosy: bethard, docs at python
priority: normal
severity: normal
stage: needs patch
status: open
title: s/args/options in arpgarse "Upgrading optparse code"
versions: Python 3.2

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


More information about the New-bugs-announce mailing list