mirror of
https://github.com/xming521/WeClone.git
synced 2026-08-29 02:10:55 +08:00
8 lines
166 B
Python
8 lines
166 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
|