Add standard --option=[yes|no|auto] style CLI flag
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 2.1k
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 31
Description
# Description:
Many core Linux CLI tools provide a consistent pattern for options that can be explicitly toggled on/off or left to automatic detection:
```
--=[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]`
Contributor guide
Assessment
This issue has not been assessed yet.