Add --help to kitty command line completion

Fixes #1469
This commit is contained in:
Kovid Goyal 2019-03-15 18:50:59 +05:30
parent 4b08ce2a09
commit b98bc1c787
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -614,7 +614,9 @@ type=bool-set
def options_for_completion():
return parse_option_spec(options_spec())[0]
raw = options_spec()
raw = '--help -h\ntype=bool-set\nShow help for kitty command line options\n\n' + raw
return parse_option_spec(raw)[0]
def option_spec_as_rst(ospec=options_spec, usage=None, message=None, appname=None, heading_char='-'):