beetbox / beetbox/beets

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

Open
#5,966 0 comments 0 reactions 1 assignee Claimed by @snejus View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.