Nicer error message when no kitten name is specified

This commit is contained in:
Kovid Goyal
2018-06-09 13:47:49 +05:30
parent 83849ab07a
commit ca41e642fb
2 changed files with 14 additions and 1 deletions

View File

@@ -101,6 +101,14 @@ def all_kitten_names():
return ans
def list_kittens():
print('You must specify the name of a kitten to run')
print('Choose from:')
print()
for kitten in all_kitten_names():
print(kitten)
def get_kitten_cli_docs(kitten):
sys.cli_docs = {}
run_kitten(kitten, run_name='__doc__')