set_color: use only on/off for boolean options

This is done partly for consistency `underline` where we still need
`off` but where true/false doesn't make sense, and partly to simplify
user choices and the code.

See #12507

Closes #12541
This commit is contained in:
Nahor
2026-03-13 09:33:42 -07:00
committed by Johannes Altmanninger
parent e9379904fb
commit 3f0b4d38ff
3 changed files with 5 additions and 29 deletions

View File

@@ -55,13 +55,13 @@ The following options are available:
Sets dim mode.
**-i** or **--italics**, or **-iSTATE** or **--italics=STATE**
Sets italics mode. The state can be **on** / **true** (default), or **off** / **false**
Sets italics mode. The state can be **on** (default), or **off**.
**-r** or **--reverse**, or **-iSTATE** or **--reverse=STATE**
Sets reverse mode. The state can be **on** / **true** (default), or **off** / **false**
Sets reverse mode. The state can be **on** (default), or **off**.
**-s** or **--strikethrough**, or **-sSTATE** or **--strikethrough=STATE**
Sets strikethrough mode. The state can be **on** / **true** (default), or **off** / **false**
Sets strikethrough mode. The state can be **on** (default), or **off**.
**-u** or **--underline**, or **-uSTYLE** or **--underline=STYLE**
Set the underline mode; supported styles are **single** (default), **double**, **curly**, **dotted**, **dashed** and **off**.