def parse_bootloader(rule):
    parser = argparse.ArgumentParser()
    rules = shlex.split(rule)
    rules.pop(0)
    parser.add_argument('--append', dest='append', action='store')
    parser.add_argument('--driveorder', dest='driveorder', action='store')
    parser.add_argument('--location', dest='location', action='store')
    parser.add_argument('--password', dest='password', action='store')
    parser.add_argument('--md5pass', dest='md5pass', action='store')
    parser.add_argument('--upgrade', dest='upgrade', action='store_true')
    parser.add_argument('--timeout', dest='timeout', action='store')
    parser.add_argument('--boot-drive', dest='bootdrive', action='store')

    args = clean_args(vars(parser.parse_args(rules)))
    parser = None
    return args
Save stats about the queries that have already executed on this run.
dataset/ETHPy150Open saltstack/salt/salt/utils/kickstart.py/parse_bootloader--crossover with--dataset/ETHPy150Open google/mysql-tools/drift_lib/drift_policies.py/ProgressMonitor.__getstate__