def show_help(args=[], **options):
"""
help
Prints the synopsis and a list of the most commonly used commands.
"""
help_dict = set_help(cmdlookup)
help_size = len(help_dict)
console_width = terminal_size().columns / 1.1
console_space = (terminal_size().columns - console_width) / 2.3
index = 0
for func_name in sorted(help_dict.keys()):
func_doc = help_dict[func_name]
index += 1
print(func_doc)
if (index < help_size):
print('{:>{}}*{:-<{}}*'.format(' ', console_space, '', console_width)) # make it pretty.
return ''
评论列表
文章目录