fix whitespace style (inconsistent with the rest of the docs)

This commit is contained in:
Fred Drake 2004-01-27 21:08:04 +00:00
parent fb5a4e33fb
commit bd12b181c8
1 changed files with 17 additions and 17 deletions

View File

@ -29,7 +29,7 @@ parser.add_option("-q", "--quiet",
action="store_false", dest="verbose", default=True,
help="don't print status messages to stdout")
(options, args) = parser.parse_args()
options, args = parser.parse_args()
\end{verbatim}
With these few lines of code, users of your script can now do the
@ -302,7 +302,7 @@ parse it:
\begin{verbatim}
args = ["-f", "foo.txt"]
(options, args) = parser.parse_args(args)
options, args = parser.parse_args(args)
\end{verbatim}
(Note that if you don't pass an argument list to
@ -335,7 +335,7 @@ argument right up against the option, since \programopt{-n42} (one
argument) is equivalent to \programopt{-n 42} (two arguments).
\begin{verbatim}
(options, args) = parser.parse_args(["-n42"])
options, args = parser.parse_args(["-n42"])
print options.num
\end{verbatim}
@ -605,7 +605,7 @@ def main():
parser.add_option("-q", "--quiet",
action="store_false", dest="verbose")
(options, args) = parser.parse_args()
options, args = parser.parse_args()
if len(args) != 1:
parser.error("incorrect number of arguments")