Skip to content

Commit 6f2f46a

Browse files
author
Release Manager
committed
gh-39921: cli: Add -V alias for --version This is quite common in Python world: ``` $> python -V Python 3.13.2 $> ipython -V 9.0.2 $> cython -V Cython version 3.0.12 ``` URL: #39921 Reported by: Antonio Rojas Reviewer(s): Tobias Diez
2 parents 95eecf0 + c1211da commit 6f2f46a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sage/cli/version_cmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def extend_parser(parser: argparse.ArgumentParser):
1818
- the extended parser.
1919
"""
2020
parser.add_argument(
21+
"-V",
2122
"--version",
2223
action="version",
2324
version=version,

0 commit comments

Comments
 (0)