ccsniff 1.0.15 → 1.0.16
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.
- package/package.json +1 -1
- package/src/cli.js +2 -2
package/package.json
CHANGED
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);
|