From ebfa824ead0da5b4eb0ff50ada49135408373400 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Mon, 28 Jun 2021 14:42:20 +0100 Subject: [PATCH] Allow passing --no-upgrade option This makes this option similar with the other boolean ones and allows calling the tools with explicit --no-upgrade. This change ease integration with other tools like CI/CD pipelines where user may want to change the default behavior related to upgrades. --- piptools/scripts/compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piptools/scripts/compile.py b/piptools/scripts/compile.py index 5fb525e3d..13be7442e 100755 --- a/piptools/scripts/compile.py +++ b/piptools/scripts/compile.py @@ -125,7 +125,7 @@ def _get_default_option(option_name: str) -> Any: ) @click.option( "-U", - "--upgrade", + "--upgrade/--no-upgrade", is_flag=True, default=False, help="Try to upgrade all dependencies to their latest versions",