def parse_vnc(rule):
    parser = argparse.ArgumentParser()
    rules = shlex.split(rule)
    rules.pop(0)
    parser.add_argument('--host', dest='host', action='store')
    parser.add_argument('--port', dest='port', action='store')
    parser.add_argument('--password', dest='password', action='store')

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