Skip to content

Add standard --option=[yes|no|auto] style CLI flag #5966

@semohr

Description

@semohr

Description:

Many core Linux CLI tools provide a consistent pattern for options that can be explicitly toggled on/off or left to automatic detection:

--<feature>=[yes|no|auto]

This pattern makes CLI behavior more predictable and script-friendly, especially when output depends on context (e.g. whether stdout is a TTY, environment variables, or configuration defaults).

Proposal:

  • Introduce support for a general yes|no|auto style for relevant CLI flags.
  • Default to auto when the option is omitted.
  • Apply this consistently across features where “automatic detection” currently exists but cannot be explicitly overridden.

Examples:

  • --color=[yes|no|auto]

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions