]> granicus.if.org Git - python/commit
bpo-14191 Add parse_intermixed_args. (#3319)
authorR. David Murray <rdmurray@bitdance.com>
Thu, 7 Sep 2017 00:25:40 +0000 (20:25 -0400)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2017 00:25:40 +0000 (20:25 -0400)
commit0f6b9d230674da784ca79a0cf1a03d2af5a8b6a8
treebe36691f027da9af59e6ae400b7608a5f28794e8
parentad0ffa033ea79f7c7cb14b1b1cc10888ea9e9913
bpo-14191 Add parse_intermixed_args. (#3319)

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.
Doc/library/argparse.rst
Doc/whatsnew/3.7.rst
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2017-09-05-17-43-00.bpo-14191.vhh2xx.rst [new file with mode: 0644]