Start work on porting the ask kitten

This commit is contained in:
Kovid Goyal
2023-03-07 08:50:12 +05:30
parent 672ecde68b
commit 0aa55fb755
5 changed files with 485 additions and 1 deletions

View File

@@ -539,3 +539,11 @@ if __name__ == '__main__':
if ans:
import json
print(json.dumps(ans))
elif __name__ == '__doc__':
import sys
cd = sys.cli_docs # type: ignore
cd['usage'] = ''
cd['options'] = option_text
cd['help_text'] = 'Ask the user for input'
cd['short_desc'] = 'Ask the user for input'