def auto(argv):
    '\n    auto [+-rR[N]] stage1 count1 [stage2 count2] ...\n        按顺序挑战指定关卡特定次数直到理智不足\n    '
    ops = _parse_opt(argv)
    arglist = argv[1:]
    if ((len(arglist) % 2) != 0):
        print('usage: auto [+-rR] stage1 count1 [stage2 count2] ...')
        return 1
    it = iter(arglist)
    tasks = [(stage.upper(), int(counts)) for (stage, counts) in zip(it, it)]
    (helper, context) = _create_helper(show_toggle=True)
    for op in ops:
        op(helper)
    with context:
        helper.main_handler(clear_tasks=False, task_list=tasks, auto_close=False)
    return 0
auto [+-rR[N]] stage1 count1 [stage2 count2] ...
    按顺序挑战指定关卡特定次数直到理智不足
def auto(argv):
    '\n    auto [+-rR[N]] stage1 count1 [stage2 count2] ...\n        按顺序挑战指定关卡特定次数直到理智不足\n    '
    ops = _parse_opt(argv)
    arglist = argv[1:]
    if ((len(arglist) % 2) != 0):
        print('usage: auto [+-rR] stage1 count1 [stage2 count2] ...')
        return 1
    it = iter(arglist)
    tasks = [(stage.upper(), int(counts)) for (stage, counts) in zip(it, it)]
    (helper, context) = _create_helper(show_toggle=True)
    for op in ops:
        op(helper)
    with context:
        helper.main_handler(clear_tasks=False, task_list=tasks, auto_close=False)
    return 0