Skip to content

enhance(cli): Improve --version output format and binary name#533

Merged
JeanMertz merged 1 commit intomainfrom
prr100
Apr 10, 2026
Merged

enhance(cli): Improve --version output format and binary name#533
JeanMertz merged 1 commit intomainfrom
prr100

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

Three small improvements to how jp identifies itself:

  • The git hash from rev-parse includes a trailing newline, which cut off the LONG_VERSION. Trimming the output fixes the malformed version string.

  • The long version string now carries a v prefix, making it consistent with conventional version formatting (e.g. v0.1.0-abc1234 (2025-05-27)).

  • The CLI command is now explicitly named jp, ensuring help output and error messages always refer to the binary by its correct name regardless of how it is invoked.

Three small improvements to how `jp` identifies itself:

- The git hash from `rev-parse` includes a trailing newline, which cut
  off the `LONG_VERSION`. Trimming the output fixes the malformed
  version string.

- The long version string now carries a `v` prefix, making it consistent
  with conventional version formatting (e.g. `v0.1.0-abc1234
  (2025-05-27)`).

- The CLI command is now explicitly named `jp`, ensuring help output and
  error messages always refer to the binary by its correct name
  regardless of how it is invoked.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit ed776b2 into main Apr 10, 2026
13 checks passed
@JeanMertz JeanMertz deleted the prr100 branch April 10, 2026 17:20
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