ccsniff 1.0.15 → 1.0.17

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/package.json +1 -1
  2. package/src/cli.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccsniff",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Watch Claude Code JSONL output files and emit structured events as a Node.js EventEmitter",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/cli.js CHANGED
@@ -32,7 +32,7 @@ function printHelp() {
32
32
  process.stdout.write(`ccsniff — query, search, and tail Claude Code session history
33
33
 
34
34
  USAGE
35
- ccsniff [filters] [output]
35
+ ccsniff [filters] [output] dump matching events (requires ≥1 flag)
36
36
  ccsniff -f live tail
37
37
  ccsniff --rollup out.ndjson [--since 7d]
38
38
  ccsniff --rollup out.sqlite --format sqlite
@@ -215,7 +215,7 @@ function sortRows(rows, key, reverse) {
215
215
  }
216
216
 
217
217
  const { opts } = parseArgs(process.argv.slice(2));
218
- if (opts.help) { printHelp(); process.exit(0); }
218
+ if (opts.help || process.argv.length <= 2) { printHelp(); process.exit(0); }
219
219
 
220
220
  const since = parseTime(opts.since || opts.after);
221
221
  const filter = buildFilter(opts);