turnstamp 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/turnstamp.js +8 -1
  2. package/package.json +2 -2
package/bin/turnstamp.js CHANGED
@@ -255,9 +255,16 @@ function cmdEvent(args) {
255
255
 
256
256
  function main(argv) {
257
257
  const [command, ...rest] = argv;
258
+
259
+ // --help can appear anywhere, and parseArgs would swallow it into args.
260
+ if (argv.includes("--help") || argv.includes("-h")) {
261
+ console.log(HELP);
262
+ return 0;
263
+ }
264
+
258
265
  const args = parseArgs(rest);
259
266
 
260
- if (!command || command === "help" || args.help) {
267
+ if (!command || command === "help") {
261
268
  console.log(HELP);
262
269
  return 0;
263
270
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turnstamp",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Tamper-evident ledger for AI coding agents: prove what your agent actually did.",
5
5
  "license": "MIT",
6
6
  "author": "akshaytheflash",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "type": "module",
16
16
  "bin": {
17
- "turnstamp": "./bin/turnstamp.js"
17
+ "turnstamp": "bin/turnstamp.js"
18
18
  },
19
19
  "exports": {
20
20
  ".": "./src/index.js",