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

View File

@@ -282,9 +282,11 @@ if you specify a program-to-run you can use the special placeholder
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='^'))
# }}}