aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/argparse.py
Commit message (Collapse)AuthorAge
...
* | Closes #12713: Allowed abbreviation of subcommands in argparse.Vinay Sajip2016-08-18
| |
* | Issue #17940: Remove redundant code from _Section.format_help()Berker Peksag2016-03-05
| | | | | | | | | | | | | | | | | | | | | | Output of func(*args) stored in the next line: item_help = join([func(*args) for func, args in self.items]) _Section.items only used by HelpFormatter._add_item() and it looks like it doesn't have any side effects. Patch by Yogesh Chaudhari.
* | Issue #24360: Improve __repr__ of argparse.Namespace() for invalid identifiers.Berker Peksag2015-07-29
|/ | | | Patch by Matthias Bussonnier.
* Issue #14910: Add allow_abbrev parameter to argparse.ArgumentParser.Berker Peksag2015-02-14
| | | | Patch by Jonathan Paugh, Steven Bethard, paul j3 and Daniel Eriksson.
* Issue #23326: Removed __ne__ implementations. Since fixing default __ne__Serhiy Storchaka2015-01-31
| | | | implementation in issue #21408 they are redundant.
* Closes #22675: fix typo.Georg Brandl2014-10-20
|
* #9351: set_defaults on subparser is no longer ignored if set on parent.R David Murray2014-10-17
| | | | | | | | 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.
* Issue #21481: Teach argparse equality tests to return NotImplemented when ↵Raymond Hettinger2014-05-26
| | | | comparing to unknown types.
* Issue #13107: argparse and optparse no longer raises an exception when outputSerhiy Storchaka2014-01-09
|\ | | | | | | | | 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 outputSerhiy Storchaka2014-01-09
| | | | | | | | | | a help on environment with too small COLUMNS. Based on patch by Elazar Gershuni.
* | Issue #18920: argparse's default version action (for -v, --version) shouldEli Bendersky2013-09-06
| | | | | | | | | | | | output to stdout, matching the 'python -v' Reported by Wolfgang Maier
* | Issue #17047: remove doubled words added in 3.4,Terry Jan Reedy2013-03-11
| | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | modernize some modules' code by using with statement around open()Giampaolo Rodola'2013-02-12
| |
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-25
| |
* | #11175: argparse.FileType now accepts encoding and errors arguments.Petri Lehtinen2012-12-15
| | | | | | | | Patch by Lucas Maystre.
* | utilize yield fromPhilip Jenvey2012-10-01
|/
* Merge 3.2 fix updates and tests for issue #15906.Barry Warsaw2012-09-12
|\
| * Update merge from 2.7: s/basetring/strBarry Warsaw2012-09-12
| |
| * A follow up for issue #15906: change the test for calling the type conversionBarry Warsaw2012-09-12
| | | | | | | | | | | | | | | | 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 Warsaw2012-09-12
|\| | | | | | | when action='append', type='str' and default=[].
| * - Issue #15906: Fix a regression in argparse caused by the preceding change,Barry Warsaw2012-09-11
| | | | | | | | when action='append', type='str' and default=[].
* | merge #15847: allow args to be a tuple in parse_argsR David Murray2012-09-08
|\| | | | | | | | | | | | | | | 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_argsR David Murray2012-09-08
| | | | | | | | | | | | | | | | 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 Murray2012-08-31
|\| | | | | | | | | | | | | | | | | 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 Murray2012-08-31
| | | | | | | | | | | | | | | | | | 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 Murray2012-07-21
|\| | | | | | | Patch by Jeff Knupp.
| * #13922: argparse no longer incorrectly strips '--' after the first one.R David Murray2012-07-21
| | | | | | | | Patch by Jeff Knupp.
* | Merge #12353: argparse now correctly handles null argument values.R David Murray2012-07-21
|\| | | | | | | Patch by Torsten Landschoff.
| * #12353: argparse now correctly handles null argument values.R David Murray2012-07-21
| | | | | | | | Patch by Torsten Landschoff.
* | Merge #14391: clarify docstring discussion of Action's 'type' argument's value.R David Murray2012-07-21
|\|
| * #14391: clarify docstring discussion of Action's 'type' argument's value.R David Murray2012-07-21
| |
* | Issue #13248: argparse: Remove obsolete argument "version" of ArgumentParser.Florent Xicluna2012-07-07
| |
* | Merge 3.2Florent Xicluna2011-10-28
|\|
| * Closes #13258: Use callable() built-in in the standard library.Florent Xicluna2011-10-28
| |
* | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1).Ezio Melotti2011-09-28
| |
* | #10424: argument names are now included in the missing argument messageR David Murray2011-06-09
| | | | | | | | Fix and initial test patch by Michele Orrù.
* | Issue #9347: Fix formatting for tuples in argparse type= error messages.Steven Bethard2011-04-04
|\|
| * Issue #9347: Fix formatting for tuples in argparse type= error messages.Steven Bethard2011-04-04
| |
* | Issue #9026: Fix order of argparse sub-commands in help messages. (Merged ↵Steven Bethard2011-03-27
|\| | | | | | | from 3.2.)
| * Issue #9026: Fix order of argparse sub-commands in help messages.Steven Bethard2011-03-27
| |
* | Issue #9348: Raise an early error if argparse nargs and metavar don't match. ↵Steven Bethard2011-03-26
|\| | | | | | | (Merge from 3.2.)
| * Issue #9348: Raise an early error if argparse nargs and metavar don't match.Steven Bethard2011-03-26
| |
* | Issue #11174: Add argparse.MetavarTypeHelpFormatter, which uses type namesSteven Bethard2011-03-26
|/ | | | for the names of optional and positional arguments in help messages.
* #10680: fix mutually exclusive arguments in argument groups.Georg Brandl2011-01-30
|
* Issue #9509: make argarse properly handle IOErrors raised by ↵Steven Bethard2011-01-24
| | | | argparse.FileType. Approved by Georg in the tracker.
* Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg ↵Steven Bethard2010-12-18
| | | | for beta2 on the tracker.
* Use proper plural forms in argparse (#4391)Éric Araujo2010-12-04
|
* Allow translators to reorder placeholders in localizable messages fromÉric Araujo2010-12-03
| | | | | | | 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 Araujo2010-12-03
| | | | | 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 subparsersSteven Bethard2010-11-02
|