From 30fd549c77031275b9f2bde2b30a7f614780939c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Tue, 28 Feb 2023 00:33:06 +0000 Subject: [PATCH] Add -C as a short version of --config-settings (#11786) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- news/short-config-settings-option.feature.rst | 1 + src/pip/_internal/cli/cmdoptions.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 news/short-config-settings-option.feature.rst diff --git a/news/short-config-settings-option.feature.rst b/news/short-config-settings-option.feature.rst new file mode 100644 index 00000000000..0da7f86373e --- /dev/null +++ b/news/short-config-settings-option.feature.rst @@ -0,0 +1 @@ +Add ``-C`` as a short version of the ``--config-settings`` option. diff --git a/src/pip/_internal/cli/cmdoptions.py b/src/pip/_internal/cli/cmdoptions.py index 1f804097e86..6a33cf48dc5 100644 --- a/src/pip/_internal/cli/cmdoptions.py +++ b/src/pip/_internal/cli/cmdoptions.py @@ -816,6 +816,7 @@ def _handle_config_settings( config_settings: Callable[..., Option] = partial( Option, + "-C", "--config-settings", dest="config_settings", type=str,