Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #23062: Add a test for suppressing --version with argparse.SUPPRESS. | Berker Peksag | 2015-04-10 | 1 | -28/+26 |
|\ | | | | | | | TestHelpVersionOptional was redundant. | ||||
| * | Issue #23062: Add a test for suppressing --version with argparse.SUPPRESS. | Berker Peksag | 2015-04-10 | 1 | -28/+26 |
| | | | | | | | | TestHelpVersionOptional was redundant. | ||||
* | | Issue #14910: Add allow_abbrev parameter to argparse.ArgumentParser. | Berker Peksag | 2015-02-13 | 1 | -0/+33 |
| | | | | | | | | Patch by Jonathan Paugh, Steven Bethard, paul j3 and Daniel Eriksson. | ||||
* | | Issue #23326: Removed __ne__ implementations. Since fixing default __ne__ | Serhiy Storchaka | 2015-01-31 | 1 | -3/+0 |
| | | | | | | | | implementation in issue #21408 they are redundant. | ||||
* | | merge 3.4 (#23221) | Benjamin Peterson | 2015-01-13 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | fix instances of consecutive articles (closes #23221) | Benjamin Peterson | 2015-01-13 | 1 | -1/+1 |
| | | | | | | | | Patch by Karan Goel. | ||||
* | | Merge: #9351: set_defaults on subparser is no longer ignored if set on parent. | R David Murray | 2014-10-17 | 1 | -0/+7 |
|\ \ | |/ | |||||
| * | #9351: set_defaults on subparser is no longer ignored if set on parent. | R David Murray | 2014-10-17 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | #11955: merge with 3.4. | Ezio Melotti | 2014-08-04 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | #11955: show the list of args in case of error in test_argparse. | Ezio Melotti | 2014-08-04 | 1 | -2/+2 |
| | | |||||
* | | Issue #9554: Use modern unittest features in test_argparse. | Berker Peksag | 2014-07-06 | 1 | -71/+31 |
|/ | | | | Initial patch by Denver Coneybeare and Radu Voicilas. | ||||
* | Issue #21481: Teach argparse equality tests to return NotImplemented when ↵ | Raymond Hettinger | 2014-05-26 | 1 | -0/+6 |
| | | | | comparing to unknown types. | ||||
* | make temporary read-only files writable, so rmtree can remove them (#21128) | Benjamin Peterson | 2014-04-04 | 1 | -0/+3 |
| | |||||
* | Issue #13107: argparse and optparse no longer raises an exception when output | Serhiy Storchaka | 2014-01-09 | 1 | -0/+54 |
|\ | | | | | | | | | 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 | -0/+54 |
| | | | | | | | | | | 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 | -2/+2 |
| | | | | | | | | | | | | output to stdout, matching the 'python -v' Reported by Wolfgang Maier | ||||
* | | #11175: argparse.FileType now accepts encoding and errors arguments. | Petri Lehtinen | 2012-12-15 | 1 | -0/+32 |
|/ | | | | Patch by Lucas Maystre. | ||||
* | Merge 3.2 fix updates and tests for issue #15906. | Barry Warsaw | 2012-09-12 | 1 | -4/+27 |
|\ | |||||
| * | A follow up for issue #15906: change the test for calling the type conversion | Barry Warsaw | 2012-09-12 | 1 | -4/+27 |
| | | | | | | | | | | | | | | | | 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/+10 |
|\ \ | |/ | | | | | 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/+10 |
| | | | | | | | | 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 | -0/+18 |
|\ \ | |/ | | | | | | | | | | | | | 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 | -0/+18 |
| | | | | | | | | | | | | | | | | 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 | -0/+48 |
|\ \ | |/ | | | | | | | | | | | | | | | 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 | -0/+48 |
| | | | | | | | | | | | | | | | | | | 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 | -12/+26 |
|\ \ | |/ | | | | | Patch by Jeff Knupp. | ||||
| * | #13922: argparse no longer incorrectly strips '--' after the first one. | R David Murray | 2012-07-22 | 1 | -12/+26 |
| | | | | | | | | Patch by Jeff Knupp. | ||||
* | | Merge #12353: argparse now correctly handles null argument values. | R David Murray | 2012-07-22 | 1 | -0/+1 |
|\ \ | |/ | | | | | Patch by Torsten Landschoff. | ||||
| * | #12353: argparse now correctly handles null argument values. | R David Murray | 2012-07-22 | 1 | -0/+1 |
| | | | | | | | | Patch by Torsten Landschoff. | ||||
* | | Issue #13248: argparse: Remove obsolete argument "version" of ArgumentParser. | Florent Xicluna | 2012-07-07 | 1 | -43/+36 |
| | | |||||
* | | Merge with 3.2 | Terry Jan Reedy | 2012-01-09 | 1 | -4/+6 |
|\ \ | |/ | |||||
| * | #11906 Make test_argparse work interactively by removing extra space | Terry Jan Reedy | 2012-01-09 | 1 | -4/+6 |
| | | | | | | | | in comparison string that argparse does not add when program name is blank. | ||||
* | | (Merge 3.2) Close #13401: Skip TestFileTypeW of test_argparse if the current ↵ | Victor Stinner | 2011-11-20 | 1 | -0/+2 |
|\ \ | |/ | | | | | | | | | user is root Patch written by Arfrever Frehtes Taifersar Arahesis. | ||||
| * | Close #13401: Skip TestFileTypeW of test_argparse if the current user is root | Victor Stinner | 2011-11-20 | 1 | -0/+2 |
| | | | | | | | | Patch written by Arfrever Frehtes Taifersar Arahesis. | ||||
* | | #10424: argument names are now included in the missing argument message | R David Murray | 2011-06-09 | 1 | -0/+61 |
| | | | | | | | | 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 | -0/+2 |
|\ \ | |/ | |||||
| * | Issue #9347: Fix formatting for tuples in argparse type= error messages. | Steven Bethard | 2011-04-03 | 1 | -0/+2 |
| | | |||||
* | | Issue #9026: Fix order of argparse sub-commands in help messages. (Merged ↵ | Steven Bethard | 2011-03-27 | 1 | -3/+80 |
|\ \ | |/ | | | | | from 3.2.) | ||||
| * | Issue #9026: Fix order of argparse sub-commands in help messages. | Steven Bethard | 2011-03-27 | 1 | -3/+80 |
| | | |||||
* | | Issue #9348: Raise an early error if argparse nargs and metavar don't match. ↵ | Steven Bethard | 2011-03-26 | 1 | -0/+171 |
|\ \ | |/ | | | | | (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/+171 |
| | | |||||
* | | Issue #11174: Add argparse.MetavarTypeHelpFormatter, which uses type names | Steven Bethard | 2011-03-26 | 1 | -0/+31 |
| | | | | | | | | for the names of optional and positional arguments in help messages. | ||||
* | | Normalize the encoding names for Latin-1 and UTF-8 to | Marc-André Lemburg | 2011-02-25 | 1 | -1/+1 |
|/ | | | | | | | | | | 'latin-1' and 'utf-8'. These are optimized in the Python Unicode implementation to result in more direct processing, bypassing the codec registry. Also see issue11303. | ||||
* | #10680: fix mutually exclusive arguments in argument groups. | Georg Brandl | 2011-01-30 | 1 | -0/+40 |
| | |||||
* | Issue #9509: make argarse properly handle IOErrors raised by ↵ | Steven Bethard | 2011-01-24 | 1 | -9/+15 |
| | | | | 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 | -2/+49 |
| | | | | for beta2 on the tracker. | ||||
* | Use proper plural forms in argparse (#4391) | Éric Araujo | 2010-12-04 | 1 | -1/+1 |
| | |||||
* | #9424: Replace deprecated assert* methods in the Python test suite. | Ezio Melotti | 2010-11-20 | 1 | -9/+9 |
| | |||||
* | Make test class name unique so that both test classes run. | R. David Murray | 2010-11-20 | 1 | -1/+1 |
| | |||||
* | Fix bug 9340 - argparse parse_known_args didn't work with subparsers | Steven Bethard | 2010-11-02 | 1 | -0/+22 |
| |