Skip to content

Commit 616cde5

Browse files
committed
Reword retries flag CLI help
1 parent eed205a commit 616cde5

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/pip/_internal/cli/cmdoptions.py

+11-12
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,17 @@ class PipOption(Option):
281281
dest="retries",
282282
type="int",
283283
default=5,
284-
help="Maximum number of retries each connection should attempt "
285-
"(default %default times).",
284+
help="Maximum attempts to establish a new HTTP connection. (default: %default)",
285+
)
286+
287+
resume_retries: Callable[..., Option] = partial(
288+
Option,
289+
"--resume-retries",
290+
dest="resume_retries",
291+
type="int",
292+
default=0,
293+
help="Maximum attempts to resume or restart an incomplete download. "
294+
"(default: %default)",
286295
)
287296

288297
timeout: Callable[..., Option] = partial(
@@ -1077,16 +1086,6 @@ def check_list_path_option(options: Values) -> None:
10771086
help=("Enable deprecated functionality, that will be removed in the future."),
10781087
)
10791088

1080-
resume_retries: Callable[..., Option] = partial(
1081-
Option,
1082-
"--resume-retries",
1083-
dest="resume_retries",
1084-
type="int",
1085-
default=0,
1086-
help="Maximum number of resumption attempts for incomplete downloads"
1087-
"(default %default times).",
1088-
)
1089-
10901089
##########
10911090
# groups #
10921091
##########

0 commit comments

Comments
 (0)