diff options
author | Guido van Rossum <guido@python.org> | 1997-04-02 06:05:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-02 06:05:07 (GMT) |
commit | e8d94a8c1023bcebd381ddeedfdd8713cf7eaa89 (patch) | |
tree | b095aff067b6fe782863b982a4f149843a71b0fb | |
parent | 1cd26f2fc08c5398a249d0734f511386b1096f8d (diff) | |
download | cpython-e8d94a8c1023bcebd381ddeedfdd8713cf7eaa89.zip cpython-e8d94a8c1023bcebd381ddeedfdd8713cf7eaa89.tar.gz cpython-e8d94a8c1023bcebd381ddeedfdd8713cf7eaa89.tar.bz2 |
Horrible hack to split up code '--' to prevent
latex2html from collapsing it into '-'.
-rw-r--r-- | Doc/lib/libgetopt.tex | 6 | ||||
-rw-r--r-- | Doc/libgetopt.tex | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Doc/lib/libgetopt.tex b/Doc/lib/libgetopt.tex index c626b3c..7ab46e4 100644 --- a/Doc/lib/libgetopt.tex +++ b/Doc/lib/libgetopt.tex @@ -6,7 +6,9 @@ This module helps scripts to parse the command line arguments in 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 @@ followed by a colon (i.e., the same format that \UNIX{} \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 diff --git a/Doc/libgetopt.tex b/Doc/libgetopt.tex index c626b3c..7ab46e4 100644 --- a/Doc/libgetopt.tex +++ b/Doc/libgetopt.tex @@ -6,7 +6,9 @@ This module helps scripts to parse the command line arguments in 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 @@ followed by a colon (i.e., the same format that \UNIX{} \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 |