def convert(self, value, param, ctx: click.Context) -> t.List[str]:
"""
Convert method that makes this class usable as a click type.
"""
if isinstance(value, self):
return value
elif isinstance(value, str):
value = str(value)
return value.split(",")
self.fail("{} is no valid comma separated string list".format(value), param, ctx)
评论列表
文章目录