]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF bug #729096: getopt online documentation example improvement
authorRaymond Hettinger <python@rcn.com>
Tue, 29 Apr 2003 04:35:36 +0000 (04:35 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 29 Apr 2003 04:35:36 +0000 (04:35 +0000)
commit6e887bb05fe619448e33a429e226ad0a5b5c7a8a
tree900577f8b91975555c3d4ea7550348410f29b13e
parenta2f8737faf02c49b0b98a2d789b1cd7537a36bbe
SF bug #729096:  getopt online documentation example improvement

A newbie found it difficult to translate the exampe into a
case that used only short options or long options but not both.
He tried to shorten the tuple search but forgot the trailing comma,
The appropriate pattern is an equality check.

Revised the example to point him in the right direction.

Backport candidate.
Doc/lib/libgetopt.tex