Skip to content

Commit 5130385

Browse files
docs(cli): document --non-interactive auto-JSON side effect in help text
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6ba6a57 commit 5130385

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type RootFlags struct {
3838
Select string `name:"select" aliases:"pick,project" help:"In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands."`
3939
DryRun bool `help:"Do not make changes; print intended actions and exit successfully" aliases:"noop,preview,dryrun" short:"n"`
4040
Force bool `help:"Skip confirmations for destructive commands" aliases:"yes,assume-yes" short:"y"`
41-
NoInput bool `help:"Never prompt; fail instead (useful for CI)" aliases:"non-interactive,noninteractive"`
41+
NoInput bool `help:"Never prompt; fail instead (useful for CI). Also defaults to JSON when stdout is non-TTY; use --plain to override." aliases:"non-interactive,noninteractive"`
4242
Verbose bool `help:"Enable verbose logging" short:"v"`
4343
}
4444

0 commit comments

Comments
 (0)