Mercurial > cpython-lru_cache-weakref
diff Doc/lib/liboptparse.tex @ 29055:6dc82dcf5589 legacy-trunk
Make this format again.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 09 May 2003 18:18:46 +0000 |
| parents | 350ee31aab0c |
| children | c019aa827f86 |
line wrap: on
line diff
--- a/Doc/lib/liboptparse.tex Fri May 09 16:55:28 2003 +0000 +++ b/Doc/lib/liboptparse.tex Fri May 09 18:18:46 2003 +0000 @@ -278,14 +278,15 @@ The interesting stuff, of course, is what comes after the option strings. For now, we'll only cover four of the things you can put -there: \var{action}, \var{type}, \var{dest} (destination), and -\var{help}. +there: \emph{action}, \emph{type}, \emph{dest} (destination), and +\emph{help}. -\subsubsection{The \var{store} action\label{optparse-store-action}} +\subsubsection{The \emph{store} action% + \label{optparse-store-action}} The action tells \module{optparse} what to do when it sees one of the option strings for this option on the command-line. For example, the -action \var{store} means: take the next argument (or the remainder of +action \emph{store} means: take the next argument (or the remainder of the current argument), ensure that it is of the correct type, and store it to your chosen destination. @@ -360,7 +361,8 @@ Adding types is fairly easy; please refer to section~\ref{optparse-adding-types}, ``Adding new types.'' -\subsubsection{Other \var{store_*} actions\label{optparse-other-store-actions}} +\subsubsection{Other \emph{store_*} actions% + \label{optparse-other-store-actions}} Flag options---set a variable to true or false when a particular option is seen---are quite common. \module{optparse} supports them
