Staging
v0.5.1
https://github.com/python/cpython
Revision 9b88e1587f7c0b9119c8ba2a11f9d4855f14aa0c authored by Raymond Hettinger on 29 April 2003, 04:37:13 UTC, committed by Raymond Hettinger on 29 April 2003, 04:37:13 UTC
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.
1 parent 971f0f0
History
Tip revision: 9b88e1587f7c0b9119c8ba2a11f9d4855f14aa0c authored by Raymond Hettinger on 29 April 2003, 04:37:13 UTC
SF bug #729096: getopt online documentation example improvement
Tip revision: 9b88e15
File Mode Size
.cvsignore -rw-r--r-- 22 bytes
acceler.c -rw-r--r-- 3.2 KB
bitset.c -rw-r--r-- 949 bytes
firstsets.c -rw-r--r-- 2.1 KB
grammar.c -rw-r--r-- 4.6 KB
grammar.mak -rw-r--r-- 1.1 KB
grammar1.c -rw-r--r-- 1.0 KB
intrcheck.c -rw-r--r-- 2.8 KB
listnode.c -rw-r--r-- 983 bytes
metagrammar.c -rw-r--r-- 2.1 KB
myreadline.c -rw-r--r-- 4.1 KB
node.c -rw-r--r-- 2.4 KB
parser.c -rw-r--r-- 8.7 KB
parser.h -rw-r--r-- 966 bytes
parsetok.c -rw-r--r-- 4.1 KB
pgen.c -rw-r--r-- 14.2 KB
pgen.h -rw-r--r-- 253 bytes
pgenmain.c -rw-r--r-- 3.6 KB
printgrammar.c -rw-r--r-- 2.4 KB
tokenizer.c -rw-r--r-- 17.9 KB
tokenizer.h -rw-r--r-- 1.8 KB

back to top