Use correct invocation command line for kittens in docs

This commit is contained in:
Kovid Goyal 2024-09-10 07:23:13 +05:30
parent 48c7c538c1
commit 2bb8539775
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -282,9 +282,11 @@ def write_cli_docs(all_kitten_names: Iterable[str]) -> None:
p(f'\nThe source code for this kitten is `available on GitHub <{scurl}>`_.')
p('\nCommand Line Interface')
p('-' * 72)
appname = f'kitten {kitten}'
if kitten in ('panel', 'broadcast'):
appname = 'kitty +' + appname
p('\n\n' + option_spec_as_rst(
data['options'], message=data['help_text'], usage=data['usage'], appname=f'kitty +kitten {kitten}',
heading_char='^'))
data['options'], message=data['help_text'], usage=data['usage'], appname=appname, heading_char='^'))
# }}}