def add_option(self, option, help, dest=None):
"""Options are settings specific to one single plugin; they will passed to process_task() in the options_dict.
"""
# If dest is something, store it, otherwise just use store_true
action="store_true"
if dest is not None:
action="store"
self._options.append(make_option('--{}'.format(option), action=action, help=help, dest=dest))
评论列表
文章目录