Commit Graph

19 Commits

Author SHA1 Message Date
Steven Bethard e3c11b44e3 Issue #9347: Fix formatting for tuples in argparse type= error messages. 2011-04-04 01:47:52 +02:00
Steven Bethard bc3b104e46 Issue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.) 2011-03-27 13:57:55 +02:00
Steven Bethard 539586296d Issue #9348: Raise an early error if argparse nargs and metavar don't match. (Merge from 3.2.) 2011-03-26 17:57:52 +01:00
Steven Bethard 7f41b88bb7 #10680: fix mutually exclusive arguments in argument groups. 2011-01-30 14:05:38 +00:00
Steven Bethard f8583acb53 Issue #9509: make argarse properly handle IOErrors raised by argparse.FileType. Approved by Georg in the tracker. 2011-01-24 20:40:15 +00:00
Éric Araujo fb3de6b437 Merged revisions 86985 via svnmerge from
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.
........
2010-12-03 19:24:49 +00:00
Steven Bethard 2e4d4c414e Merged revisions 86111 via svnmerge from
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
........
2010-11-02 12:48:15 +00:00
Steven Bethard 68c3678253 Merged revisions 86092 via svnmerge from
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
........
2010-11-01 16:30:24 +00:00
Steven Bethard 784dd51ad2 Merged revisions 86090 via svnmerge from
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
........
2010-11-01 15:59:35 +00:00
Steven Bethard 931906a7f5 Merged revisions 86086 via svnmerge from
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)
........
2010-11-01 15:24:42 +00:00
R. David Murray 1cbf78e040 Merged revisions 83675 via svnmerge from
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.
........
2010-08-03 18:14:01 +00:00
Steven Bethard dce6e1bd5a Fix default value for version help. Approved by Benjamin on python-dev: http://mail.python.org/pipermail/python-dev/2010-May/100231.html 2010-05-24 03:45:26 +00:00
Benjamin Peterson fb224e3034 replace copy right notice with simple attribution 2010-03-24 22:03:09 +00:00
Benjamin Peterson 6b31fd0f13 eliminate py3k warnings in argparse 2010-03-07 00:29:44 +00:00
Benjamin Peterson 0e717addd8 remove cross-version compatibility code 2010-03-02 23:02:02 +00:00
Benjamin Peterson bd56722a27 remove code to avoid BaseException.message bug 2010-03-02 22:58:01 +00:00
Benjamin Peterson a39e966e97 set svn:eol-style 2010-03-02 22:05:59 +00:00
Benjamin Peterson c1df5460c5 remove coding cookie as mandated by PEP 8 2010-03-02 22:03:03 +00:00
Steven Bethard e9330e7941 Initial commit of the argparse library, based on argparse 1.1.
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.
2010-03-02 08:38:09 +00:00