iplugin.py 文件源码

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

项目:scriptabit 作者: DC23 项目源码 文件源码
def get_arg_parser(self):
        """Gets the argument parser containing any CLI arguments for the plugin.

        Note that to avoid argument name conflicts, only long argument names
        should be used, and they should be prefixed with the plugin-name or
        unique abbreviation.

        To get their `ArgParser`, subclasses should call this method via super
        and capture the returned `ArgParser` instance.

        Returns: argparse.ArgParser:  The `ArgParser` containing the argument
        definitions.
        """
        return configargparse.ArgParser(add_help=False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号