__init__.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:tm-manifesting 作者: FabricAttachedMemory 项目源码 文件源码
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 ''
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号