File size: 177 Bytes
88aba71
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
def dict_to_argv(d):
    argv = []
    for k, v in d.items():
        argv.append("--" + k)
        if v is not None:
            argv.append(str(v))
    return argv