common_options.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:origin-ci-tool 作者: openshift 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号