cliutils.py 文件源码

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

项目:python-redfish-utility 作者: DMTF 项目源码 文件源码
def format_argument_help(self, formatter):
        """Function to help format argument help.

        :param formatter: formatter
        :type formatter: formatter
        """
        if not self._args:
            return ""

        result = []
        for option in self._args:
            if not option.help is optparse.SUPPRESS_HELP:
                output = formatter.format_option(option)
                output = self._repattern.sub('  ', output)
                result.append(output)

        return '%s\n' % "".join(result)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号