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

gward at users.sourceforge.net gward at users.sourceforge.net
Tue Sep 28 03:30:27 CEST 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv389

Modified Files:
	liboptparse.tex 
Log Message:
Major overhaul to reflect Optik 1.5.  Section references currently broken.


Index: liboptparse.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liboptparse.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- liboptparse.tex	11 Sep 2004 15:47:30 -0000	1.15
+++ liboptparse.tex	28 Sep 2004 01:30:23 -0000	1.16
@@ -1,27 +1,23 @@
-\section{\module{optparse} ---
-        Powerful parser for command line options.}
-
+\section{\module{optparse} --- More powerful command line option parser}
 \declaremodule{standard}{optparse}
 \moduleauthor{Greg Ward}{gward at python.net}
-\sectionauthor{Johannes Gijsbers}{jlgijsbers at users.sf.net}
-\sectionauthor{Greg Ward}{gward at python.net}
-
-\modulesynopsis{Powerful, flexible, extensible, easy-to-use command-line
-                parsing library.}
[...2548 lines suppressed...]
-\module{optparse}.
-
-Version 1: Add a method to \class{OptionParser} which applications
-must call after parsing arguments:
-
-\verbatiminput{required_1.py}
-
-Version 2: Extend \class{Option} and add a \member{required}
-attribute; extend \class{OptionParser} to ensure that required options
-are present after parsing:
-
-\verbatiminput{required_2.py}
+numbers in the arguments following \code{"-c"} will be interpreted as
+further options (probably causing an error), rather than as arguments to
+\code{"-c"}.  Fixing this is left as an exercise for the reader.
+% $Id$ 
 
-\begin{seealso}
-  \seemodule{getopt}{More traditional \UNIX-style command line option parsing.}
-\end{seealso}



More information about the Python-checkins mailing list