Skip to content

Add --version option - #102

Merged
ligurio merged 1 commit into
masterfrom
ligurio/gh-xxxx-option-with-version
Sep 9, 2026
Merged

ligurio merged 1 commit into
masterfrom
ligurio/gh-xxxx-option-with-version

Conversation

@ligurio

@ligurio ligurio commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Add a --version flag that prints the elle-cli version and exits with status 0.

The version is read from the
META-INF/maven/elle-cli/elle-cli/pom.properties resource, which Leiningen embeds both into the uberjar and into target/classes at build time, so it reflects the version the binary was built from without hardcoding it in the source.

The patch also adds a regression test covering option parsing and the reported version format.

Add a --version flag that prints the elle-cli version and exits
with status 0.

The version is read from the
META-INF/maven/elle-cli/elle-cli/pom.properties resource, which
Leiningen embeds both into the uberjar and into target/classes at
build time, so it reflects the version the binary was built from
without hardcoding it in the source.

The patch also adds a regression test covering option parsing and
the reported version format.
@ligurio
ligurio force-pushed the ligurio/gh-xxxx-option-with-version branch from ad89542 to d008bbb Compare September 9, 2026 10:48
@ligurio
ligurio merged commit 9c2a18b into master Sep 9, 2026
4 checks passed
@ligurio
ligurio deleted the ligurio/gh-xxxx-option-with-version branch September 9, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant