Improve rendering of :option: in cli docs
This commit is contained in:
parent
aa3be0535f
commit
4e58062025
@ -96,6 +96,8 @@ def opt(text: str) -> str:
|
||||
|
||||
|
||||
def option(x: str) -> str:
|
||||
idx = x.rfind('--')
|
||||
if idx < 0:
|
||||
idx = x.find('-')
|
||||
if idx > -1:
|
||||
x = x[idx:]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user