Update of /cvsroot/python/python/dist/src/Doc/lib In directory usw-pr-cvs1:/tmp/cvs-serv22746/lib Modified Files: libgetopt.tex Log Message: Explain that long options are matched based on a unique prefix rather than requiring the whole option to be typed out. This closes SF bug #126863. Index: libgetopt.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libgetopt.tex,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** libgetopt.tex 2000/10/10 17:03:45 1.15 --- libgetopt.tex 2001/01/08 16:05:51 1.16 *************** *** 30,34 **** \code{'-}\code{-'} characters should not be included in the option name. Long options which require an argument should be followed by an ! equal sign (\character{=}). The return value consists of two elements: the first is a list of --- 30,41 ---- \code{'-}\code{-'} characters should not be included in the option name. Long options which require an argument should be followed by an ! equal sign (\character{=}). To accept only long options, ! \var{options} should be an empty string. Long options on the command ! line can be recognized so long as they provide a prefix of the option ! name that matches exactly one of the accepted options. For example, ! it \var{long_options} is \code{['foo', 'frob']}, the option ! \longprogramopt{fo} will match as \longprogramopt{foo}, but ! \longprogramopt{f} will not match uniquely, so \exception{GetoptError} ! will be raised. The return value consists of two elements: the first is a list of
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4