def metavar(self):
"""
Metavar as a property, to satisfy the slight brokenness of
click.Argument
Tracked against Click as an issue:
https://github.com/pallets/click/issues/674
"""
if self.path_required:
return "ENDPOINT_ID:PATH"
else:
return "ENDPOINT_ID[:PATH]"
评论列表
文章目录