diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-31 02:26:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-31 02:26:06 +0200 |
| commit | 3f819ca138db6945ee4271bf13e42db9f9b3b1e4 (patch) | |
| tree | 7eab13b4f9da0c8936d423cd633594cf83ba870f /Doc/library/optparse.rst | |
| parent | 68f323715e6627c550d1e8ffed7e36f1bb4aa42b (diff) | |
| download | cpython-git-3f819ca138db6945ee4271bf13e42db9f9b3b1e4.tar.gz | |
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)
Diffstat (limited to 'Doc/library/optparse.rst')
| -rw-r--r-- | Doc/library/optparse.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst index e9b82ee2ac..4f7bd43ce7 100644 --- a/Doc/library/optparse.rst +++ b/Doc/library/optparse.rst @@ -388,8 +388,8 @@ flag that is turned on with ``-v`` and off with ``-q``:: parser.add_option("-q", action="store_false", dest="verbose") Here we have two different options with the same destination, which is perfectly -OK. (It just means you have to be a bit careful when setting default values--- -see below.) +OK. (It just means you have to be a bit careful when setting default +values---see below.) When :mod:`optparse` encounters ``-v`` on the command line, it sets ``options.verbose`` to ``True``; when it encounters ``-q``, @@ -525,9 +525,9 @@ help message: default: ``"Usage: %prog [options]"``, which is fine if your script doesn't take any positional arguments. -* every option defines a help string, and doesn't worry about line-wrapping--- - :mod:`optparse` takes care of wrapping lines and making the help output look - good. +* every option defines a help string, and doesn't worry about + line-wrapping---\ :mod:`optparse` takes care of wrapping lines and making + the help output look good. * options that take a value indicate this fact in their automatically-generated help message, e.g. for the "mode" option:: |
