def parse_autostep(rule):
    parser = argparse.ArgumentParser()
    rules = shlex.split(rule)
    rules.pop(0)
    parser.add_argument('--autoscreenshot', dest='autoscreenshot',
                        action='store')

    args = clean_args(vars(parser.parse_args(rules)))
    parser = None
    return args
Parse the autostep line
dataset/ETHPy150Open saltstack/salt/salt/utils/kickstart.py/parse_autostep