def handle_parse_result(self, ctx, opts, args):
if (self.name in opts) and self.mutually_exclusive.intersection(opts):
raise click.UsageError('Illegal usage: {0}'.format(self._message))
return super(MutuallyExclusiveOption, self).handle_parse_result(ctx, opts, args)
评论列表
文章目录