● -v properly exits 2 (clap's argument error). All 363 tests still pass. #27
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-prolog!27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "version"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
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.