

def parse_parameters(doc, version):
    p = docopt(doc, version=version)
    p = {k.lstrip('-'): v for (k, v) in p.items()}
    try:
        return {
            'input_is_hex': bool(p['hex']),
            'max_key_length': int(p['max-keylen']),
            'known_key_length': (int(p['key-length']) if p['key-length'] else None),
            'most_frequent_char': (parse_char(p['char']) if p['char'] else None),
            'brute_chars': bool(p['brute-chars']),
            'brute_printable': bool(p['brute-printable']),
            'frequency_spread': 0,
            'filename': (p['FILE'] if p['FILE'] else '-'),
        }
    except ValueError as err:
        raise ArgError(str(k))

dataset/ETHPy150Open hellman/xortool/xortool/args.py parse_parameters/VarMisuse@176/258 `err`->`k`