Mercurial > cpython-lru_cache-weakref
diff Doc/libgetopt.tex @ 5247:6db8ade8d8a9 legacy-trunk
Horrible hack to split up code '--' to prevent
latex2html from collapsing it into '-'.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 02 Apr 1997 06:05:07 +0000 |
| parents | e21d3e7aea87 |
| children | 3468ea8645ca |
line wrap: on
line diff
--- a/Doc/libgetopt.tex Wed Apr 02 06:04:02 1997 +0000 +++ b/Doc/libgetopt.tex Wed Apr 02 06:05:07 1997 +0000 @@ -6,7 +6,9 @@ It supports the same conventions as the \UNIX{} \code{getopt()} function (including the special meanings of arguments of the form -\samp{-} and \samp{--}). Long options similar to those supported by +`\code{-}' and `\code{-}\code{-}'). +% That's to fool latex2html into leaving the two hyphens alone! +Long options similar to those supported by GNU software may be used as well via an optional third argument. It defines the function \code{getopt.getopt(args, options [, long_options])} @@ -24,7 +26,7 @@ \code{getopt()} uses). The third option, if specified, is a list of strings with the names of -the long options which should be supported. The leading \code{'--'} +the long options which should be supported. The leading \code{'-}\code{-'} characters should not be included in the option name. Options which require an argument should be followed by an equal sign (\code{'='}). The return value consists of two elements: the first is a list of
