Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
ENH: add -p as an alias to --python-version
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Mar 5, 2024
1 parent e1b1066 commit 53c3fa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/update_pip_constraints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
def main(argv: Optional[Sequence[str]] = None) -> int:
parser = ArgumentParser(description="Update pip constraints file")
parser.add_argument(
"-p",
"--python-version",
default=_get_python_version(),
help="Python version to use",
help="Python version to use. E.g. 3.9, 3.10, 3.11, etc.",
type=str,
)
args = parser.parse_args(argv)
Expand Down

0 comments on commit 53c3fa1

Please sign in to comment.