You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bin/codepact.js has no --version/-v option (verified against the current USAGE string and argument switch in bin/codepact.js: only -h/--help, --json, --markdown, --strict, --baseline, --write-baseline, --out, --config are handled). A bug report or baseline mismatch across upgrades currently has no way to say which version of the tool produced a given report.
Scope
Add --version/-v that prints the version from package.json and exits 0, without requiring any path argument.
Acceptance criteria
codepact --version prints exactly the package.jsonversion field and exits 0.
Works with no other arguments, even though paths is otherwise expected.
Covered by a CLI integration test (subprocess, like the existing test/cli.test.js/test/baseline.test.js pattern).
Activity