def parse_keyboard(rule):
    parser = argparse.ArgumentParser()
    rules = shlex.split(rule)
    rules.pop(0)
    parser.add_argument('--vckeymap', dest='vckeymap', action='store')
    parser.add_argument('--xlayouts', dest='xlayouts', action='store')
    parser.add_argument('--switch', dest='switch', action='store')
    parser.add_argument('keyboard')

    args = clean_args(vars(parser.parse_args(rules)))

    if 'keyboard' in args and 'xlayouts' not in args:
        args['xlayouts'] = args['keyboard']

    parser = None
    return args
Wrapper for 'svd_from_eigh' to work on the smallest dimention of A
dataset/ETHPy150Open saltstack/salt/salt/utils/kickstart.py/parse_keyboard--crossover with--dataset/ETHPy150Open charanpald/APGL/apgl/util/Util.py/Util.svd