mirror of
https://github.com/xming521/WeClone.git
synced 2026-10-19 06:58:20 +08:00
10 lines
168 B
Python
10 lines
168 B
Python
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
|
|
|
|
|