More typing work

This commit is contained in:
Kovid Goyal
2020-03-04 06:10:57 +05:30
parent 5730ce5f53
commit a4cc10c41b
12 changed files with 340 additions and 65 deletions

View File

@@ -9,6 +9,7 @@ from kitty.cli import parse_args
from kitty.constants import cache_dir
from ..tui.operations import alternate_screen, styled
from ..tui.handler import result_handler
readline = None
@@ -108,6 +109,7 @@ def main(args):
return ans
@result_handler()
def handle_result(args, data, target_window_id, boss):
if 'response' in data:
func, *args = data['items']

View File

@@ -423,6 +423,7 @@ def main(args=sys.argv):
if __name__ == '__main__':
main()
elif __name__ == '__doc__':
sys.cli_docs['usage'] = usage
sys.cli_docs['options'] = options_spec
sys.cli_docs['help_text'] = help_text
cd = sys.cli_docs # type: ignore
cd['usage'] = usage
cd['options'] = options_spec
cd['help_text'] = help_text