]> 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:37:13 +0000 (04:37 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 29 Apr 2003 04:37:13 +0000 (04:37 +0000)
commit9b88e1587f7c0b9119c8ba2a11f9d4855f14aa0c
treed8dde333ab77f839b28a52cfa86a42004c6e6abd
parent971f0f0fb4c2cb48fd428d8f474834997da3f006
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.
Doc/lib/libgetopt.tex