def package_options(func):
"""
Add all of the package options to the decorated command func.
:param func: Click CLI command to decorate
:return: decorated CLI command
"""
return option(
'--stage',
'-s',
'upgrade_stage',
type=Choice(['current', 'next', 'fork', 'base', 'crio']),
help='Update the current stage, upgrade to next default stage, or choose a stage',
)(func)
评论列表
文章目录