Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libgetopt.tex @ 7277:bf4e790bd61a legacy-trunk
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty.
Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}"
everywhere.
Some other minor nits that I happened to come across.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 13 Feb 1998 06:58:54 +0000 |
| parents | 6f2ab4afa8f9 |
| children | a0c7aa0522de |
line wrap: on
line diff
--- a/Doc/lib/libgetopt.tex Fri Feb 13 06:48:05 1998 +0000 +++ b/Doc/lib/libgetopt.tex Fri Feb 13 06:58:54 1998 +0000 @@ -45,7 +45,7 @@ An example using only \UNIX{} style options: -\bcode\begin{verbatim} +\begin{verbatim} >>> import getopt, string >>> args = string.split('-a -b -cfoo -d bar a1 a2') >>> args @@ -56,11 +56,11 @@ >>> args ['a1', 'a2'] >>> -\end{verbatim}\ecode +\end{verbatim} % Using long option names is equally easy: -\bcode\begin{verbatim} +\begin{verbatim} >>> s = '--condition=foo --testing --output-file abc.def -x a1 a2' >>> args = string.split(s) >>> args @@ -72,7 +72,7 @@ >>> args ['a1', 'a2'] >>> -\end{verbatim}\ecode +\end{verbatim} % The exception \code{getopt.error}
