mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 03:11:46 +00:00
Improve rendering of :option: in cli docs
This commit is contained in:
parent
aa3be0535f
commit
4e58062025
1 changed files with 3 additions and 1 deletions
|
|
@ -96,7 +96,9 @@ def opt(text: str) -> str:
|
|||
|
||||
|
||||
def option(x: str) -> str:
|
||||
idx = x.find('-')
|
||||
idx = x.rfind('--')
|
||||
if idx < 0:
|
||||
idx = x.find('-')
|
||||
if idx > -1:
|
||||
x = x[idx:]
|
||||
parts = map(bold, x.split())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue