Skip to content

Commit

Permalink
Allow passing --no-upgrade option (#1438)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ssbarnea authored Jul 1, 2021
1 parent 08d311d commit 8b5b3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piptools/scripts/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8b5b3b6

Please sign in to comment.