_make.py 文件源码

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

项目:deb-python-rjsmin 作者: openstack 项目源码 文件源码
def print_help(self):
        """ Print make help """
        import textwrap as _textwrap

        targets = self.targetinfo()
        keys = []
        for key, info in targets.items():
            if not info['hide']:
                keys.append(key)
        keys.sort()
        length = max(map(len, keys))
        info = []
        for key in keys:
            info.append("%s%s" % (
                (key + " " * length)[:length + 2],
                _textwrap.fill(
                    targets[key]['desc'].strip(),
                    subsequent_indent=" " * (length + 2)
                ),
            ))
        print "Available targets:\n\n" + "\n".join(info)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号