Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #21481: Teach argparse equality tests to return NotImplemented when ↵ | Raymond Hettinger | 2014-05-26 | 1 | -0/+4 |
| | | | | comparing to unknown types. | ||||
* | Issue #13107: argparse and optparse no longer raises an exception when output | Serhiy Storchaka | 2014-01-09 | 1 | -3/+5 |
|\ | | | | | | | | | a help on environment with too small COLUMNS. Based on patch by Elazar Gershuni. | ||||
| * | Issue #13107: argparse and optparse no longer raises an exception when output | Serhiy Storchaka | 2014-01-09 | 1 | -3/+5 |
| | | | | | | | | | | a help on environment with too small COLUMNS. Based on patch by Elazar Gershuni. | ||||
* | | Issue #18920: argparse's default version action (for -v, --version) should | Eli Bendersky | 2013-09-06 | 1 | -1/+2 |
| | | | | | | | | | | | | output to stdout, matching the 'python -v' Reported by Wolfgang Maier | ||||
* | | Issue #17047: remove doubled words added in 3.4, | Terry Jan Reedy | 2013-03-11 | 1 | -1/+1 |
| | | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett. | ||||
* | | modernize some modules' code by using with statement around open() | Giampaolo Rodola' | 2013-02-12 | 1 | -4/+1 |
| | | |||||
* | | Replace IOError with OSError (#16715) | Andrew Svetlov | 2012-12-25 | 1 | -2/+2 |
| | | |||||
* | | #11175: argparse.FileType now accepts encoding and errors arguments. | Petri Lehtinen | 2012-12-15 | 1 | -3/+13 |
| | | | | | | | | Patch by Lucas Maystre. | ||||
* | | utilize yield from | Philip Jenvey | 2012-10-01 | 1 | -2/+1 |
|/ | |||||
* | Merge 3.2 fix updates and tests for issue #15906. | Barry Warsaw | 2012-09-12 | 1 | -1/+1 |
|\ | |||||
| * | Update merge from 2.7: s/basetring/str | Barry Warsaw | 2012-09-12 | 1 | -1/+1 |
| | | |||||
| * | A follow up for issue #15906: change the test for calling the type conversion | Barry Warsaw | 2012-09-12 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | - Issue #15906: Fix a regression in argparse caused by the preceding change, | Barry Warsaw | 2012-09-12 | 1 | -0/+1 |
|\ \ | |/ | | | | | when action='append', type='str' and default=[]. | ||||
| * | - Issue #15906: Fix a regression in argparse caused by the preceding change, | Barry Warsaw | 2012-09-12 | 1 | -0/+1 |
| | | | | | | | | when action='append', type='str' and default=[]. | ||||
* | | merge #15847: allow args to be a tuple in parse_args | R David Murray | 2012-09-08 | 1 | -1/+4 |
|\ \ | |/ | | | | | | | | | | | | | 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. | ||||
| * | #15847: allow args to be a tuple in parse_args | R David Murray | 2012-09-08 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | Merge #12776,#11839: call argparse type function only once. | R David Murray | 2012-09-01 | 1 | -7/+19 |
|\ \ | |/ | | | | | | | | | | | | | | | 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. | ||||
| * | #12776,#11839: call argparse type function only once. | R David Murray | 2012-09-01 | 1 | -7/+14 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Merge #13922: argparse no longer incorrectly strips '--' after the first one. | R David Murray | 2012-07-22 | 1 | -2/+5 |
|\ \ | |/ | | | | | Patch by Jeff Knupp. | ||||
| * | #13922: argparse no longer incorrectly strips '--' after the first one. | R David Murray | 2012-07-22 | 1 | -2/+5 |
| | | | | | | | | Patch by Jeff Knupp. | ||||
* | | Merge #12353: argparse now correctly handles null argument values. | R David Murray | 2012-07-22 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by Torsten Landschoff. | ||||
| * | #12353: argparse now correctly handles null argument values. | R David Murray | 2012-07-22 | 1 | -1/+1 |
| | | | | | | | | Patch by Torsten Landschoff. | ||||
* | | Merge #14391: clarify docstring discussion of Action's 'type' argument's value. | R David Murray | 2012-07-21 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | #14391: clarify docstring discussion of Action's 'type' argument's value. | R David Murray | 2012-07-21 | 1 | -4/+4 |
| | | |||||
* | | Issue #13248: argparse: Remove obsolete argument "version" of ArgumentParser. | Florent Xicluna | 2012-07-07 | 1 | -36/+1 |
| | | |||||
* | | Merge 3.2 | Florent Xicluna | 2011-10-28 | 1 | -7/+3 |
|\ \ | |/ | |||||
| * | Closes #13258: Use callable() built-in in the standard library. | Florent Xicluna | 2011-10-28 | 1 | -7/+3 |
| | | |||||
* | | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). | Ezio Melotti | 2011-09-28 | 1 | -1/+1 |
| | | |||||
* | | #10424: argument names are now included in the missing argument message | R David Murray | 2011-06-09 | 1 | -10/+5 |
| | | | | | | | | Fix and initial test patch by Michele Orrù. | ||||
* | | Issue #9347: Fix formatting for tuples in argparse type= error messages. | Steven Bethard | 2011-04-04 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Issue #9347: Fix formatting for tuples in argparse type= error messages. | Steven Bethard | 2011-04-03 | 1 | -2/+2 |
| | | |||||
* | | Issue #9026: Fix order of argparse sub-commands in help messages. (Merged ↵ | Steven Bethard | 2011-03-27 | 1 | -1/+2 |
|\ \ | |/ | | | | | from 3.2.) | ||||
| * | Issue #9026: Fix order of argparse sub-commands in help messages. | Steven Bethard | 2011-03-27 | 1 | -1/+2 |
| | | |||||
* | | Issue #9348: Raise an early error if argparse nargs and metavar don't match. ↵ | Steven Bethard | 2011-03-26 | 1 | -0/+7 |
|\ \ | |/ | | | | | (Merge from 3.2.) | ||||
| * | Issue #9348: Raise an early error if argparse nargs and metavar don't match. | Steven Bethard | 2011-03-26 | 1 | -0/+7 |
| | | |||||
* | | Issue #11174: Add argparse.MetavarTypeHelpFormatter, which uses type names | Steven Bethard | 2011-03-26 | 1 | -4/+29 |
|/ | | | | for the names of optional and positional arguments in help messages. | ||||
* | #10680: fix mutually exclusive arguments in argument groups. | Georg Brandl | 2011-01-30 | 1 | -0/+1 |
| | |||||
* | Issue #9509: make argarse properly handle IOErrors raised by ↵ | Steven Bethard | 2011-01-24 | 1 | -6/+7 |
| | | | | argparse.FileType. Approved by Georg in the tracker. | ||||
* | Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg ↵ | Steven Bethard | 2010-12-18 | 1 | -3/+14 |
| | | | | for beta2 on the tracker. | ||||
* | Use proper plural forms in argparse (#4391) | Éric Araujo | 2010-12-04 | 1 | -3/+7 |
| | |||||
* | Allow translators to reorder placeholders in localizable messages from | Éric Araujo | 2010-12-03 | 1 | -14/+20 |
| | | | | | | | argparse (#10528). There is no unit test; I checked with xgettext that no more warnings were emitted. Steven approved the change. | ||||
* | Fix incorrect use of gettext in argparse (#10497). | Éric Araujo | 2010-12-03 | 1 | -2/+2 |
| | | | | | Steven, the maintainer of argparse, agreed to have this committed without tests for now, since the fix is obvious. See the bug log. | ||||
* | Fix bug 9340 - argparse parse_known_args didn't work with subparsers | Steven Bethard | 2010-11-02 | 1 | -2/+12 |
| | |||||
* | Fix for issue 9355 where with multiple mutually exclusive arguments, some ↵ | Steven Bethard | 2010-11-01 | 1 | -2/+8 |
| | | | | brackets were being lost in the usage messages | ||||
* | Fix bug 9352 where characters were being lost in parsing some short options | Steven Bethard | 2010-11-01 | 1 | -7/+7 |
| | |||||
* | Get argparse.__all__ back up to date (issue 9353) | Steven Bethard | 2010-11-01 | 1 | -3/+10 |
| | |||||
* | #9444: use first of prefix_chars for help opt instead of raising error | R. David Murray | 2010-08-03 | 1 | -2/+5 |
| | | | | | | | | | | | 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. | ||||
* | Merged revisions 81492 via svnmerge from | Steven Bethard | 2010-05-24 | 1 | -1/+1 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81492 | steven.bethard | 2010-05-23 20:45:26 -0700 (Sun, 23 May 2010) | 1 line Fix default value for version help. Approved by Benjamin on python-dev: http://mail.python.org/pipermail/python-dev/2010-May/100231.html ........ | ||||
* | Merged revisions 79385 via svnmerge from | Benjamin Peterson | 2010-03-24 | 1 | -13/+1 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79385 | benjamin.peterson | 2010-03-24 17:03:09 -0500 (Wed, 24 Mar 2010) | 1 line replace copy right notice with simple attribution ........ | ||||
* | Merged revisions 78600-78601 via svnmerge from | Benjamin Peterson | 2010-03-02 | 1 | -37/+7 |
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78600 | benjamin.peterson | 2010-03-02 16:58:01 -0600 (Tue, 02 Mar 2010) | 1 line remove code to avoid BaseException.message bug ........ r78601 | benjamin.peterson | 2010-03-02 17:02:02 -0600 (Tue, 02 Mar 2010) | 1 line remove cross-version compatibility code ........ |