]> granicus.if.org Git - python/commit
Merged revisions 83675 via svnmerge from
authorR. David Murray <rdmurray@bitdance.com>
Tue, 3 Aug 2010 18:14:01 +0000 (18:14 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Tue, 3 Aug 2010 18:14:01 +0000 (18:14 +0000)
commit1cbf78e040b1ddfe7a1520d21ea34e1098848713
tree6a32364130570d6302f2b94aae36d0d72847ee97
parent0f98128d6e9a2375bb560a58418e83ebd1996f2b
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.
........
Doc/library/argparse.rst
Lib/argparse.py
Lib/test/test_argparse.py
Misc/ACKS
Misc/NEWS