diff options
author | Fred Drake <fdrake@acm.org> | 2003-05-09 18:18:46 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-05-09 18:18:46 (GMT) |
commit | 3ec4dfd812ef57cd7fedd9ba80eb4bc0b072b7da (patch) | |
tree | 66a1ffc5cdd8eb0ec1fe4f10b67417075eaa2a7a /Doc/lib | |
parent | 93724dbd3df26bd01c1845bd3c5dd12172de169e (diff) | |
download | cpython-3ec4dfd812ef57cd7fedd9ba80eb4bc0b072b7da.zip cpython-3ec4dfd812ef57cd7fedd9ba80eb4bc0b072b7da.tar.gz cpython-3ec4dfd812ef57cd7fedd9ba80eb4bc0b072b7da.tar.bz2 |
Make this format again.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/liboptparse.tex | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/lib/liboptparse.tex b/Doc/lib/liboptparse.tex index 9364e95..026239e 100644 --- a/Doc/lib/liboptparse.tex +++ b/Doc/lib/liboptparse.tex @@ -278,14 +278,15 @@ parser.add_option("-f", "--file", ...) 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 @@ destination for \programopt{-f} is \var{f}. 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 |