● -v properly exits 2 (clap's argument error). All 363 tests still pass. #27

Merged
navicore merged 1 commit from version into main 2026-06-02 18:52:42 +00:00
Owner

Implemented in src/main.rs — added version, propagate_version = true to the top-level #[command(...)] block.
Three lines of change total. The version flows automatically:

[workspace.package].version = "0.4.0" → CARGO_PKG_VERSION → clap derive

prlg --version
→ "prlg 0.4.0"

Verified:

  • prlg --version → prlg 0.4.0 ✓
  • prlg -V → prlg 0.4.0 ✓
  • prlg -v → rejected, exit 2 (still reserved for future --verbose) ✓
  • prlg --help lists -V, --version Print version ✓
  • prlg compile --version → prlg-compile 0.4.0 ✓
  • prlg run --version → prlg-run 0.4.0 ✓

Next release will pick up the new version automatically — the workflow's awk-bump of [workspace.package].version
is the only thing that drives it.

Implemented in src/main.rs — added version, propagate_version = true to the top-level #[command(...)] block. Three lines of change total. The version flows automatically: [workspace.package].version = "0.4.0" → CARGO_PKG_VERSION → clap derive ↓ prlg --version → "prlg 0.4.0" Verified: - prlg --version → prlg 0.4.0 ✓ - prlg -V → prlg 0.4.0 ✓ - prlg -v → rejected, exit 2 (still reserved for future --verbose) ✓ - prlg --help lists -V, --version Print version ✓ - prlg compile --version → prlg-compile 0.4.0 ✓ - prlg run --version → prlg-run 0.4.0 ✓ Next release will pick up the new version automatically — the workflow's awk-bump of [workspace.package].version is the only thing that drives it.
● -v properly exits 2 (clap's argument error). All 363 tests still pass.
All checks were successful
CI - Linux / CI - Linux x86_64 (pull_request) Successful in 21s
4f84bec360
Implemented in src/main.rs — added version, propagate_version = true to the top-level #[command(...)] block.
  Three lines of change total. The version flows automatically:

  [workspace.package].version = "0.4.0"   →  CARGO_PKG_VERSION  →  clap derive
                                                                   ↓
                                                            prlg --version
                                                            → "prlg 0.4.0"

  Verified:
  - prlg --version → prlg 0.4.0 ✓
  - prlg -V → prlg 0.4.0 ✓
  - prlg -v → rejected, exit 2 (still reserved for future --verbose) ✓
  - prlg --help lists -V, --version  Print version ✓
  - prlg compile --version → prlg-compile 0.4.0 ✓
  - prlg run --version → prlg-run 0.4.0 ✓

  Next release will pick up the new version automatically — the workflow's awk-bump of [workspace.package].version
  is the only thing that drives it.
navicore deleted branch version 2026-06-02 18:52:42 +00:00
Sign in to join this conversation.
No description provided.