Skip to content

feat: add --version / -V flag - #37

Merged
N283T merged 2 commits into
mainfrom
feature/version-flag
Apr 16, 2026
Merged

feat: add --version / -V flag#37
N283T merged 2 commits into
mainfrom
feature/version-flag

Conversation

@N283T

@N283T N283T commented Apr 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds --version / -V that prints mmcif-dict <version> and exits 0
  • Version sourced from build.zig.zon via b.addOptions()@import("build_options") — no hardcoded constant, auto-syncs with releases
  • Updates usage text, README Options table, and CHANGELOG

Closes #36

Test plan

  • zig build succeeds
  • zig build test passes
  • mmcif-dict --versionmmcif-dict 0.3.0
  • mmcif-dict -Vmmcif-dict 0.3.0
  • mmcif-dict --help mentions both --version and -V
  • tests/test_smoke.py all 18 tests pass (3 new version-related tests, including one that verifies the advertised version matches build.zig.zon)

N283T added 2 commits April 16, 2026 12:50
Prints "mmcif-dict <version>" and exits 0. Version is sourced from
build.zig.zon via b.addOptions() so it stays in lockstep with the
package version automatically — no hardcoded constant to forget.

Closes #36
@N283T
N283T merged commit add77a9 into main Apr 16, 2026
1 check passed
@N283T
N283T deleted the feature/version-flag branch April 16, 2026 03:55
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.

feat: add --version flag to show CLI version

1 participant