Commit 768c810
docs: clarify prefix_command overload behavior (#1310)
## Summary
Clarify the documentation for `prefix_command` overloads.
This updates the README and API comments to make the behavior of
`prefix_command(bool)` more explicit and to distinguish it from
`prefix_command(CLI::PrefixCommandMode)`.
In particular:
- documents that `prefix_command(true)` maps to `PrefixCommandMode::On`
- documents that `prefix_command(false)` maps to
`PrefixCommandMode::Off`
- clarifies the `SeparatorOnly` behavior in the README
- improves the inline API comments for both overloads
Closes #1052
---------
Co-authored-by: Omer Bulut <omer.bulut@asisguard.com.tr>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 1946b74 commit 768c810
2 files changed
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1160 | 1163 | | |
1161 | 1164 | | |
1162 | 1165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
504 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
508 | 509 | | |
509 | 510 | | |
510 | | - | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
0 commit comments