Skip to content

Commit c1211da

Browse files
committed
cli: Add -V alias for --version
This is quite common in Python world
1 parent 871ba9d commit c1211da

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)