spinel-cli.py 文件源码

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

项目:pyspinel 作者: openthread 项目源码 文件源码
def do_help(self, line):
        if line:
            cmd, _arg, _unused = self.parseline(line)
            try:
                doc = getattr(self, 'do_' + cmd).__doc__
            except AttributeError:
                doc = None
            if doc:
                self.log("%s\n" % textwrap.dedent(doc))
            else:
                self.log("No help on %s\n" % (line))
        else:
            self.print_topics(
                "\nAvailable commands (type help <name> for more information):",
                SpinelCliCmd.command_names, 15, 80)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号