claude-git-sessions 0.1.1 → 0.1.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/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { push } from "./commands/push.js";
7
7
  import { deleteSession } from "./commands/delete.js";
8
8
  // Kept in sync with package.json at publish time; hardcoded to avoid a JSON
9
9
  // import assertion just for --version.
10
- const VERSION = "0.1.1";
10
+ const VERSION = "0.1.2";
11
11
  function globals(cmd) {
12
12
  const opts = cmd.optsWithGlobals();
13
13
  return {
@@ -73,4 +73,11 @@ program
73
73
  });
74
74
  });
75
75
  });
76
+ // With no subcommand, print help to stdout and exit 0 — Commander's default is
77
+ // to print to stderr and exit 1, which looks like an error to anyone running
78
+ // the bare command (e.g. `npx claude-git-sessions`).
79
+ if (process.argv.length <= 2) {
80
+ program.outputHelp();
81
+ process.exit(0);
82
+ }
76
83
  program.parseAsync(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-git-sessions",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Share Claude Code sessions across a team through an orphan git branch in your existing repo.",
5
5
  "keywords": ["claude", "claude-code", "git", "sessions", "cli"],
6
6
  "license": "MIT",