summaryrefslogtreecommitdiff
path: root/Lib/argparse.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #9347: Fix formatting for tuples in argparse type= error messages.Steven Bethard2011-04-041-2/+2
|
* Issue #9026: Fix order of argparse sub-commands in help messages. (Merged ↵Steven Bethard2011-03-271-1/+2
| | | | from 3.2.)
* Issue #9348: Raise an early error if argparse nargs and metavar don't match. ↵Steven Bethard2011-03-261-0/+7
| | | | (Merge from 3.2.)
* #10680: fix mutually exclusive arguments in argument groups.Steven Bethard2011-01-301-0/+1
|
* Issue #9509: make argarse properly handle IOErrors raised by ↵Steven Bethard2011-01-241-6/+7
| | | | argparse.FileType. Approved by Georg in the tracker.
* Merged revisions 86985 via svnmerge fromÉric Araujo2010-12-031-2/+2
| | | | | | | | | | | | | 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. ........
* Merged revisions 86111 via svnmerge fromSteven Bethard2010-11-021-2/+12
| | | | | | | | | | 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 ........
* Merged revisions 86092 via svnmerge fromSteven Bethard2010-11-011-2/+8
| | | | | | | | | | 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 ........
* Merged revisions 86090 via svnmerge fromSteven Bethard2010-11-011-7/+7
| | | | | | | | | | 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 ........
* Merged revisions 86086 via svnmerge fromSteven Bethard2010-11-011-3/+10
| | | | | | | | | | 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) ........
* Merged revisions 83675 via svnmerge fromR. David Murray2010-08-031-2/+5
| | | | | | | | | | | | | | | | | | | 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. ........
* Fix default value for version help. Approved by Benjamin on python-dev: ↵Steven Bethard2010-05-241-1/+1
| | | | http://mail.python.org/pipermail/python-dev/2010-May/100231.html
* replace copy right notice with simple attributionBenjamin Peterson2010-03-241-13/+1
|
* eliminate py3k warnings in argparseBenjamin Peterson2010-03-071-0/+2
|
* remove cross-version compatibility codeBenjamin Peterson2010-03-021-28/+7
|
* remove code to avoid BaseException.message bugBenjamin Peterson2010-03-021-9/+0
|
* set svn:eol-styleBenjamin Peterson2010-03-021-2351/+2351
|
* remove coding cookie as mandated by PEP 8Benjamin Peterson2010-03-021-3/+1
|
* Initial commit of the argparse library, based on argparse 1.1.Steven Bethard2010-03-021-0/+2353
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.