-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Description
City2TABULA should expose a simple CLI command to print the current software version so users can include it when reporting bugs/issues.
Motivation
When users open issues, version information is often missing or wrong. A dedicated version flag makes reporting and support faster, and it’s standard behaviour for CLI tools.
Proposed behaviour
Support both of these:
./city2tabula --version./city2tabula -v
Output
Print only the version string to stdout:
v0.5.0-alpha
(Optionally with a trailing newline, as usual.)
Exit code
- Exit with code
0after printing the version. - Do not run any other logic (no config loading, no DB calls, no side effects).
Acceptance criteria
-
city2tabula --versionprints the current version and exits0 -
city2tabula -vprints the current version and exits0 - Output matches exactly the version string (e.g.,
v0.5.0-alpha) - Works even if required env vars/config are missing
- Included in
--helpoutput (if help exists)
Notes / implementation hint
Ideally the version is injected at build time (e.g., from git tag) so releases don’t require manual edits, but a static constant is acceptable as a first step.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request