Move cli spec parsing code into simple module

This commit is contained in:
Kovid Goyal
2025-04-27 09:34:51 +05:30
parent 62699f6799
commit e42d410ee4
13 changed files with 362 additions and 326 deletions

View File

@@ -127,7 +127,7 @@ def main(args: list[str]) -> None:
if __name__ == '__main__':
main(sys.argv)
elif __name__ == '__doc__':
from kitty.cli import CompletionSpec
from kitty.simple_cli_definitions import CompletionSpec
cd = sys.cli_docs # type: ignore
cd['usage'] = usage
cd['options'] = option_text