def parse_ignoredisk(rule):
    parser = argparse.ArgumentParser()
    rules = shlex.split(rule)
    rules.pop(0)
    parser.add_argument('--drives', dest='drives', action='store')
    parser.add_argument('--only-use', dest='only-use', action='store')
    parser.add_argument('--interactive', dest='interactive',
                        action='store_true')

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