Skip to content

Commit ba5f19c

Browse files
committed
chore: sort version flags for Cyclopts CLIs
1 parent 06ca8ff commit ba5f19c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog.d/+a37dbe77.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sort version flags for Cyclopts CLIs.

template/src/{{ package_name }}/{% if cli == 'cyclopts' %}.{% endif %}/cli.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ from . import __version__
99
app = cyclopts.App(
1010
help="Run the main program.",
1111
version=f"{{ distribution_name }}, version {__version__}",
12-
version_flags=("-V", "--version"),
12+
version_flags=("--version", "-V"),
1313
)
1414

1515

0 commit comments

Comments
 (0)