feat: report GREEN_RELEASE via --version in all executables - #56
Merged
Conversation
Wire GREEN_RELEASE as a compile definition for mbpt.exe, embedding.exe and int-transform.exe, and inject it into the params parser via its constructor. Each binary now reports its release through --version, and via a "Version:" line in --help and the parameter dump, using the unified help_or_version() stop handling. Requires green-params with the native --version flag (merged). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
egull
approved these changes
Jun 24, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR wires the build’s GREEN_RELEASE string into the CLI parameter system for all shipped executables so they can report a consistent release via --version, and also show it in --help / parameter dumps.
Changes:
- Pass
GREEN_RELEASEinto thegreen::params::paramsconstructor formbpt.exe,embedding.exe, andint-transform.exe. - Switch help printing on parse-short-circuit to
help_or_version()and treat it as a successful (0) exit. - Define
GREEN_RELEASEas a per-target compile definition for the three executables in CMake.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| main.cpp | Supplies GREEN_RELEASE to params and uses help_or_version() on early-exit parse path. |
| embedding.cpp | Same as main.cpp, for the embedding executable. |
| itransform.cpp | Passes GREEN_RELEASE to params, removes redundant parse call, and uses help_or_version() on early-exit parse path. |
| CMakeLists.txt | Adds GREEN_RELEASE compile definitions for all three executables. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
--versionflag tombpt.exe,embedding.exe, andint-transform.exethat prints the build's release string (GREEN_RELEASE). The release also appears as aVersion:line in--helpand the parameter dump.Implemented by passing
GREEN_RELEASE(already a compile definition) to theparamsconstructor; the--version/--helpprinting and exit are handled by the params parser.Verified:
--versionprints the release and exits 0 on all three executables;--helpshows theVersion:line.🤖 Generated with Claude Code