def CMDset_commit(parser, args):
    'Sets the commit bit to trigger the Commit Queue.'
    parser.add_option('-d', '--dry-run', action='store_true', help='trigger in dry run mode')
    parser.add_option('-c', '--clear', action='store_true', help='stop CQ run, if any')
    auth.add_auth_options(parser)
    (options, args) = parser.parse_args(args)
    auth_config = auth.extract_auth_config_from_options(options)
    if args:
        parser.error(('Unrecognized args: %s' % ' '.join(args)))
    if (options.dry_run and options.clear):
        parser.error('Make up your mind: both --dry-run and --clear not allowed')
    cl = Changelist(auth_config=auth_config)
    if options.clear:
        state = _CQState.CLEAR
    elif options.dry_run:
        state = _CQState.DRY_RUN
    else:
        state = _CQState.COMMIT
    if (not cl.GetIssue()):
        parser.error('Must upload the issue first')
    cl.SetCQState(state)
    return 0
Sets the commit bit to trigger the Commit Queue.
def CMDset_commit(parser, args):
    
    parser.add_option('-d', '--dry-run', action='store_true', help='trigger in dry run mode')
    parser.add_option('-c', '--clear', action='store_true', help='stop CQ run, if any')
    auth.add_auth_options(parser)
    (options, args) = parser.parse_args(args)
    auth_config = auth.extract_auth_config_from_options(options)
    if args:
        parser.error(('Unrecognized args: %s' % ' '.join(args)))
    if (options.dry_run and options.clear):
        parser.error('Make up your mind: both --dry-run and --clear not allowed')
    cl = Changelist(auth_config=auth_config)
    if options.clear:
        state = _CQState.CLEAR
    elif options.dry_run:
        state = _CQState.DRY_RUN
    else:
        state = _CQState.COMMIT
    if (not cl.GetIssue()):
        parser.error('Must upload the issue first')
    cl.SetCQState(state)
    return 0