[Python-checkins] python/dist/src/Doc/lib libgetopt.tex,1.19,1.20

loewis@users.sourceforge.net loewis@users.sourceforge.net
Thu, 06 Jun 2002 03:58:37 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv9636/Doc/lib

Modified Files:
	libgetopt.tex 
Log Message:
Patch 473512: add GNU style scanning as gnu_getopt.


Index: libgetopt.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libgetopt.tex,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** libgetopt.tex	20 Oct 2001 04:24:09 -0000	1.19
--- libgetopt.tex	6 Jun 2002 10:58:35 -0000	1.20
***************
*** 56,59 ****
--- 56,71 ----
  \end{funcdesc}
  
+ \begin{funcdesc}{gnu_getopt}{args, options\optional{, long_options}}
+ This function works like \function{getopt()}, except that GNU style
+ scanning mode is used by default. This means that option and
+ non-option arguments may be intermixed. The \function{getopt()}
+ function stops processing options as soon as a non-option argument is
+ encountered.
+ 
+ If the first character of the option string is `+', or if the
+ environment variable POSIXLY_CORRECT is set, then option processing
+ stops as soon as a non-option argument is encountered.
+ \end{funcdesc}
+ 
  \begin{excdesc}{GetoptError}
  This is raised when an unrecognized option is found in the argument