Skip to content

Commit 5e4a516

Browse files
jesseturner21claude
andcommitted
docs: show default time ranges in traces and logs --help output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7b4a23d commit 5e4a516

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/cli/commands/logs/command.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export const registerLogs = (program: Command) => {
1212
.alias('l')
1313
.description(COMMAND_DESCRIPTIONS.logs)
1414
.option('--agent <name>', 'Select specific agent')
15-
.option('--since <time>', 'Start time (e.g. "1h", "30m", "2d", ISO 8601)')
16-
.option('--until <time>', 'End time (e.g. "now", ISO 8601)')
15+
.option('--since <time>', 'Start time — defaults to 1h ago in search mode (e.g. "1h", "30m", "2d", ISO 8601)')
16+
.option('--until <time>', 'End time — defaults to now in search mode (e.g. "now", ISO 8601)')
1717
.option('--level <level>', 'Filter by log level (error, warn, info, debug)')
1818
.option('-n, --lines <count>', 'Maximum number of log lines to return')
1919
.option('--query <text>', 'Server-side text filter')

src/cli/commands/traces/command.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export const registerTraces = (program: Command) => {
2525
.description('List recent traces for a deployed agent')
2626
.option('--agent <name>', 'Select specific agent')
2727
.option('--limit <n>', 'Maximum number of traces to display', '20')
28-
.option('--since <time>', 'Start time (e.g. 5m, 1h, 2d, ISO 8601, epoch ms)')
29-
.option('--until <time>', 'End time (e.g. now, 1h, ISO 8601, epoch ms)')
28+
.option('--since <time>', 'Start time — defaults to 12h ago (e.g. 5m, 1h, 2d, ISO 8601, epoch ms)')
29+
.option('--until <time>', 'End time — defaults to now (e.g. now, 1h, ISO 8601, epoch ms)')
3030
.action(async (cliOptions: TracesListOptions) => {
3131
requireProject();
3232

@@ -97,8 +97,8 @@ export const registerTraces = (program: Command) => {
9797
.description('Download a trace to a JSON file')
9898
.option('--agent <name>', 'Select specific agent')
9999
.option('--output <path>', 'Output file path')
100-
.option('--since <time>', 'Start time (e.g. 5m, 1h, 2d, ISO 8601, epoch ms)')
101-
.option('--until <time>', 'End time (e.g. now, 1h, ISO 8601, epoch ms)')
100+
.option('--since <time>', 'Start time — defaults to 12h ago (e.g. 5m, 1h, 2d, ISO 8601, epoch ms)')
101+
.option('--until <time>', 'End time — defaults to now (e.g. now, 1h, ISO 8601, epoch ms)')
102102
.action(async (traceId: string, cliOptions: TracesGetOptions) => {
103103
requireProject();
104104

0 commit comments

Comments
 (0)