mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
Improve rendering of :option: in cli docs
This commit is contained in:
@@ -96,7 +96,9 @@ def opt(text: str) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def option(x: str) -> str:
|
def option(x: str) -> str:
|
||||||
idx = x.find('-')
|
idx = x.rfind('--')
|
||||||
|
if idx < 0:
|
||||||
|
idx = x.find('-')
|
||||||
if idx > -1:
|
if idx > -1:
|
||||||
x = x[idx:]
|
x = x[idx:]
|
||||||
parts = map(bold, x.split())
|
parts = map(bold, x.split())
|
||||||
|
|||||||
Reference in New Issue
Block a user