History log of /external/python/cpython2/Lib/argparse.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
af26c15110b76195e62a06d17e39176d42c0511c 18-Oct-2014 R David Murray <rdmurray@bitdance.com> #9351: set_defaults on subparser is no longer ignored if set on parent.

Before, if a default was set on the parent parser, any default for that
variable set via set_defaults on a subparser would be ignored. Now
the subparser set_defaults is honored.

Patch by Jyrki Pullianinen.
/external/python/cpython2/Lib/argparse.py
fb8899a597c5ef39706215a894fc8c5f5dbf85bc 26-May-2014 Raymond Hettinger <python@rcn.com> Issue #21481: Teach argparse equality tests to return NotImplemented when comparing to unknown types.
/external/python/cpython2/Lib/argparse.py
9f8621fa7d3562f472b6a16854df51bfb3fdbd5f 09-Jan-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #13107: argparse and optparse no longer raises an exception when output
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
/external/python/cpython2/Lib/argparse.py
03937a8755e189959c44e5035a3eb27db95a6efe 12-Sep-2012 Barry Warsaw <barry@python.org> A follow up for issue #15906: change the test for calling the type conversion
on the action's default, reverting it back to previous behavior. Conversion
is only done on string defaults.

Add a test for this and another test that ensures such type conversions are
only called once.
/external/python/cpython2/Lib/argparse.py
03fcfbef0aa9a0990d5cd3995defa8cd089f704c 12-Sep-2012 Barry Warsaw <barry@python.org> - Issue #15906: Fix a regression in argparse caused by the preceding change,
when action='append', type='str' and default=[].
/external/python/cpython2/Lib/argparse.py
a99c7dedcb9310d80f2cf29a747e05fdde2716bc 08-Sep-2012 R David Murray <rdmurray@bitdance.com> #15847: allow args to be a tuple in parse_args

This fixes a regression introduced by the fix for issue #13922. Although args
is not documented as being allowed to be a tuple, previously this worked and
so naturally there are programs in the field that depend on it.

Patch by Zbyszek Jędrzejewski-Szmek.
/external/python/cpython2/Lib/argparse.py
201018718fc55fada8fd159b86bc038c3d297597 01-Sep-2012 R David Murray <rdmurray@bitdance.com> #12776,#11839: call argparse type function only once.

Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.

Patch by Arnaud Fontaine, with additional test by Mike Meyer.
/external/python/cpython2/Lib/argparse.py
68f555c03ad32671a76c5762313bbf33c0ae4842 22-Jul-2012 R David Murray <rdmurray@bitdance.com> #13922: argparse no longer incorrectly strips '--' after the first one.

Patch by Jeff Knupp.
/external/python/cpython2/Lib/argparse.py
056c31f9cc10a8697a40c817eae42f7e38a1cf80 22-Jul-2012 R David Murray <rdmurray@bitdance.com> #12353: argparse now correctly handles null argument values.

Patch by Torsten Landschoff.
/external/python/cpython2/Lib/argparse.py
1a2c1fbfd2208407e1af365b161276b6f103c1ad 21-Jul-2012 R David Murray <rdmurray@bitdance.com> #14391: clarify docstring discussion of Action's 'type' argument's value.
/external/python/cpython2/Lib/argparse.py
e3c11b44e37e80371fcaf71880e659a78360e8b6 04-Apr-2011 Steven Bethard <steven.bethard@gmail.com> Issue #9347: Fix formatting for tuples in argparse type= error messages.
/external/python/cpython2/Lib/argparse.py
bc3b104e46be0367b46d614f925ef78e4a0225ef 27-Mar-2011 Steven Bethard <steven.bethard@gmail.com> Issue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.)
/external/python/cpython2/Lib/argparse.py
539586296d64a51cd58c8c45a7dd850cdcc05fcc 26-Mar-2011 Steven Bethard <steven.bethard@gmail.com> Issue #9348: Raise an early error if argparse nargs and metavar don't match. (Merge from 3.2.)
/external/python/cpython2/Lib/argparse.py
7f41b88bb7b978205a438c7eea2b7f6bba6862d0 30-Jan-2011 Steven Bethard <steven.bethard@gmail.com> #10680: fix mutually exclusive arguments in argument groups.
/external/python/cpython2/Lib/argparse.py
f8583acb534432097671e79eb4110b9861dd2e17 24-Jan-2011 Steven Bethard <steven.bethard@gmail.com> Issue #9509: make argarse properly handle IOErrors raised by argparse.FileType. Approved by Georg in the tracker.
/external/python/cpython2/Lib/argparse.py
fb3de6b437ba92701e162eb830bbc775cda135b5 03-Dec-2010 Éric Araujo <merwok@netwok.org> Merged revisions 86985 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86985 | eric.araujo | 2010-12-03 20:19:17 +0100 (ven., 03 déc. 2010) | 5 lines

Fix incorrect use of gettext in argparse (#10497).

Steven, the maintainer of argparse, agreed to have this committed
without tests for now, since the fix is obvious. See the bug log.
........
/external/python/cpython2/Lib/argparse.py
2e4d4c414e4275b5a8cbcd152e04ed91fb72af79 02-Nov-2010 Steven Bethard <steven.bethard@gmail.com> Merged revisions 86111 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86111 | steven.bethard | 2010-11-02 13:47:22 +0100 (Tue, 02 Nov 2010) | 1 line

Fix bug 9340 - argparse parse_known_args didn't work with subparsers
........
/external/python/cpython2/Lib/argparse.py
68c3678253eb0bf1a15537d2725df9af15e2c913 01-Nov-2010 Steven Bethard <steven.bethard@gmail.com> Merged revisions 86092 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86092 | steven.bethard | 2010-11-01 17:29:26 +0100 (Mon, 01 Nov 2010) | 1 line

Fix for issue 9355 where with multiple mutually exclusive arguments, some brackets were being lost in the usage messages
........
/external/python/cpython2/Lib/argparse.py
784dd51ad297d31ee724f38a528ba8472e4b14f9 01-Nov-2010 Steven Bethard <steven.bethard@gmail.com> Merged revisions 86090 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86090 | steven.bethard | 2010-11-01 16:57:36 +0100 (Mon, 01 Nov 2010) | 1 line

Fix bug 9352 where characters were being lost in parsing some short options
........
/external/python/cpython2/Lib/argparse.py
931906a7f5974865c9e928332eb6dd8ba10a91c7 01-Nov-2010 Steven Bethard <steven.bethard@gmail.com> Merged revisions 86086 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86086 | steven.bethard | 2010-11-01 16:23:12 +0100 (Mon, 01 Nov 2010) | 1 line

Get argparse.__all__ back up to date (issue 9353)
........
/external/python/cpython2/Lib/argparse.py
1cbf78e040b1ddfe7a1520d21ea34e1098848713 03-Aug-2010 R. David Murray <rdmurray@bitdance.com> Merged revisions 83675 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r83675 | r.david.murray | 2010-08-03 13:56:09 -0400 (Tue, 03 Aug 2010) | 12 lines

#9444: use first of prefix_chars for help opt instead of raising error

An argparse option parser created with a prefix_chars that did not
include a '-' would happily add -h and --help options, and then throw
an error when it tried to format the help because the - was an invalid
prefix character. This patch makes it use the first character of
prefix_chars as the character for the help options if and only if '-'
is not one of the valid prefix_chars.

Fix by Theodore Turocy, unit tests by Catherine Devlin.
........
/external/python/cpython2/Lib/argparse.py
dce6e1bd5a5b41b22be10ba119fb5b6d5546959a 24-May-2010 Steven Bethard <steven.bethard@gmail.com> Fix default value for version help. Approved by Benjamin on python-dev: http://mail.python.org/pipermail/python-dev/2010-May/100231.html
/external/python/cpython2/Lib/argparse.py
fb224e303435c9b98fd1a24dbd3cf119d7b90b6b 24-Mar-2010 Benjamin Peterson <benjamin@python.org> replace copy right notice with simple attribution
/external/python/cpython2/Lib/argparse.py
6b31fd0f13f5730b5a9b70be91a0edba3781e194 07-Mar-2010 Benjamin Peterson <benjamin@python.org> eliminate py3k warnings in argparse
/external/python/cpython2/Lib/argparse.py
0e717addd8a03ed10231a578fce894c07ddb157e 03-Mar-2010 Benjamin Peterson <benjamin@python.org> remove cross-version compatibility code
/external/python/cpython2/Lib/argparse.py
bd56722a274287b4ce6212569aff546b572923ab 02-Mar-2010 Benjamin Peterson <benjamin@python.org> remove code to avoid BaseException.message bug
/external/python/cpython2/Lib/argparse.py
a39e966e97af0ca8cf395a2ab8a02555ebe684c7 02-Mar-2010 Benjamin Peterson <benjamin@python.org> set svn:eol-style
/external/python/cpython2/Lib/argparse.py
c1df5460c524629255469866847b56f70e688c37 02-Mar-2010 Benjamin Peterson <benjamin@python.org> remove coding cookie as mandated by PEP 8
/external/python/cpython2/Lib/argparse.py
e9330e79419bf44c20cabeb2539e2c71e6af9e06 02-Mar-2010 Steven Bethard <steven.bethard@gmail.com> Initial commit of the argparse library, based on argparse 1.1.
Docs still need some updating to make getopt and optparse match the wording promised in the PEP.
There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.
/external/python/cpython2/Lib/argparse.py