summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-05-30 11:56:19 (GMT)
committerPetr Viktorin <encukou@gmail.com>2018-05-30 11:56:19 (GMT)
commitbe325e6132c9198f7b8e9c7da2dd0017a33212cc (patch)
tree24ae038fa259143ddbfa443a591c9d03eb7a74b5
parent3b263e65a80cfcb1fc751834372533773ec024a4 (diff)
downloadcpython-be325e6132c9198f7b8e9c7da2dd0017a33212cc.zip
cpython-be325e6132c9198f7b8e9c7da2dd0017a33212cc.tar.gz
cpython-be325e6132c9198f7b8e9c7da2dd0017a33212cc.tar.bz2
Improve ensurepip's --help (GH-4686) (GH-7239)
* Add a space to ensurepip's --altinstall option * Add periods to the arguments of ensurepip that didn't have it This makes --help for all optional arguments consistent and also makes it consistent with pip --help. (cherry picked from commit e9537ad6a128924dd610bea2268065500c174181) Co-authored-by: Wieland Hoffmann <mineo@users.noreply.github.com>
-rw-r--r--Lib/ensurepip/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py
index 8dc2354..4748ba4 100644
--- a/Lib/ensurepip/__init__.py
+++ b/Lib/ensurepip/__init__.py
@@ -182,15 +182,15 @@ def _main(argv=None):
"--altinstall",
action="store_true",
default=False,
- help=("Make an alternate install, installing only the X.Y versioned"
- "scripts (Default: pipX, pipX.Y, easy_install-X.Y)"),
+ help=("Make an alternate install, installing only the X.Y versioned "
+ "scripts (Default: pipX, pipX.Y, easy_install-X.Y)."),
)
parser.add_argument(
"--default-pip",
action="store_true",
default=False,
help=("Make a default pip install, installing the unqualified pip "
- "and easy_install in addition to the versioned scripts"),
+ "and easy_install in addition to the versioned scripts."),
)
args = parser.parse_args(argv)