def parse_args(args):
    parser = argparse.ArgumentParser()
    parser.add_argument('mode', choices=MODES)
    parser.add_argument('files', nargs='+')
    parser.add_argument('--weights', '-w', type=(lambda x: [float(t) for t in x.split(',')]), help='Comma-separated lit of multiplizer per file')
    parser.add_argument('--out-file', '-o', default=None, help='Where to write all output')
    if (len(sys.argv) == 1):
        parser.print_help()
        sys.exit(1)
    return parser.parse_args(args)
def parse_args(args):
    parser = argparse.ArgumentParser()
    parser.add_argument('mode', choices=MODES)
    parser.add_argument('files', nargs='+')
    parser.add_argument('--weights', '-w', type=(lambda x: [float(t) for t in x.split(',')]), help='Comma-separated lit of multiplizer per file')
    parser.add_argument('--out-file', '-o', default=None, help='Where to write all output')
    if (len(sys.argv) == 1):
        parser.print_help()
        sys.exit(1)
    return parser.parse_args(args)