Skip to content

Commit b901782

Browse files
committed
cli.cmdoptions: Add 'use_keyring' flag, defaulting to False
1 parent 4557a92 commit b901782

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/pip/_internal/cli/cmdoptions.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,15 @@ def _handle_no_use_pep517(option, opt, value, parser):
766766
help=SUPPRESS_HELP
767767
) # type: Any
768768

769+
use_keyring = partial(
770+
Option,
771+
'--use-keyring',
772+
dest='use_keyring',
773+
action='store_true',
774+
default=False,
775+
help="Attempt to get credentials from the user's keyring."
776+
) # type: Any
777+
769778
install_options = partial(
770779
Option,
771780
'--install-option',

0 commit comments

Comments
 (0)