def dict2args(d):
    """
    Convert dictionary of options to command line argument list
    """
    args = []
    for k, v in d.items():
        args.append(f'--{k}')
        args.append(str(v))
    return args