| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | bpo-29553: Fix ArgumentParser.format_usage() for mutually exclusive groups ↵ | Miss Islington (bot) | 2019-08-25 | 1 | -0/+40 |
| | | | | | | | | | (GH-14976) Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com> Co-authored-by: Flavian Hautbois <flavianh@sicara.com> (cherry picked from commit da27d9b9dc44913ffee8f28d9638985eaaa03755) | ||||
| * | Revert "Remove unused imports in tests (GH-14518) (GH-14522)" (GH-14555) | Victor Stinner | 2019-07-02 | 1 | -0/+1 |
| | | | | This reverts commit e34b5f4d6483187969d5149c801d056b72ef2ddb. | ||||
| * | Remove unused imports in tests (GH-14518) (GH-14522) | Victor Stinner | 2019-07-01 | 1 | -1/+0 |
| | | | | (cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3) | ||||
| * | bpo-34582: Adds JUnit XML output for regression tests (GH-9210) | Miss Islington (bot) | 2018-09-18 | 1 | -4/+14 |
| | | | | | | (cherry picked from commit d0f49d2f5085ca68e3dc8725f1fb1c9674bfb5ed) Co-authored-by: Steve Dower <steve.dower@microsoft.com> | ||||
| * | bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) | Miss Islington (bot) | 2018-06-08 | 1 | -9/+33 |
| | | | | | | | | | - bugfix and test for fragile metavar handling in argparse (see bpo-24089, bpo-14046, bpo-25058, bpo-11874) - also fixes some incorrect tests that did not make 1-element tuples correctly (cherry picked from commit 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b) Co-authored-by: wim glenn <wim.glenn@gmail.com> | ||||
| * | bpo-33109: argparse subparsers are once again not required by default ↵ | Miss Islington (bot) | 2018-05-24 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | (GH-6919) (GH-7089) bpo-26510 in 3.7.0a2 changed the behavior of argparse to make subparsers required by default, returning to the behavior of 2.7 and 3.2. The behavior was changed in 3.3 to be no longer required. While it might make more sense to have the default to required, compatibility with 3.3 through 3.6 is probably less disruptive than trying to reintroduce compatibility with 2.7 at this point. This change restores the 3.6 behavior. (cherry picked from commit 8ebf5ceb0f5408d1ebc26c19702ac0762ef5ea04) Co-authored-by: Ned Deily <nad@python.org> | ||||
| * | bpo-26510: make argparse subparsers required by default (#3027) | Anthony Sottile | 2017-09-20 | 1 | -1/+36 |
| | | | | | | | This fixes a regression from Python 2. To get optional subparsers, use the new parameter ``add_subparsers(required=False)``. Patch by Anthony Sottile. | ||||
| * | bpo-14191 Add parse_intermixed_args. (#3319) | R. David Murray | 2017-09-07 | 1 | -0/+87 |
| | | | | This adds support for parsing a command line where options and positionals are intermixed as is common in many unix commands. This is paul.j3's patch with a few tweaks. | ||||
| * | bpo-29783: Replace codecs.open() with io.open() (#599) | Victor Stinner | 2017-06-16 | 1 | -1/+1 |
| | | |||||
| * | Issue #29290: Merge 3.5. | Xiang Zhang | 2017-01-22 | 1 | -0/+17 |
| |\ | |||||
| | * | Issue #29290: argparse help messages won't wrap at non-breaking spaces. | Xiang Zhang | 2017-01-22 | 1 | -0/+17 |
| | | | |||||
| * | | Issue #28300: Merge from 3.5 | Berker Peksag | 2016-09-28 | 1 | -1/+1 |
| |\ \ | |/ | |||||
| | * | Issue #28300: Fix typos, patch by Shlomi Fish | Berker Peksag | 2016-09-28 | 1 | -1/+1 |
| | | | |||||
| * | | Issue #12713: reverted fix pending further discussion. | Vinay Sajip | 2016-08-23 | 1 | -65/+27 |
| | | | |||||
| * | | Closes #12713: Allowed abbreviation of subcommands in argparse. | Vinay Sajip | 2016-08-18 | 1 | -27/+65 |
| | | | |||||
| * | | Merge typo fixes from 3.5 | Martin Panter | 2016-04-05 | 1 | -5/+5 |
| |\ \ | |/ | |||||
| | * | Fix typos in documentation and comments | Martin Panter | 2016-04-05 | 1 | -5/+5 |
| | | | |||||
| * | | Merge typo and grammar fixes from 3.5 | Martin Panter | 2015-11-14 | 1 | -1/+1 |
| |\ \ | |/ | |||||
| | * | Merge typo and grammar fixes from 3.4 into 3.5 | Martin Panter | 2015-11-14 | 1 | -1/+1 |
| | |\ | |||||
| | | * | Fix a few grammar problems in the documentation and comments | Martin Panter | 2015-11-14 | 1 | -1/+1 |
| | | | | |||||
| * | | | Issue #24360: Improve __repr__ of argparse.Namespace() for invalid identifiers. | Berker Peksag | 2015-07-29 | 1 | -0/+15 |
| |/ / | | | | | | | Patch by Matthias Bussonnier. | ||||
| * | | 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. | ||||
