[Python-checkins] CVS: python/dist/src/Doc/lib libgetopt.tex,1.15,1.16

Fred L. Drake python-dev@python.org
Mon, 08 Jan 2001 08:05:54 -0800


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