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)
评论列表
文章目录