Commit 810ba072 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Handle underscores

parent db0743b8
......@@ -54,11 +54,11 @@ if __name__ == "__main__":
for key, value in args_dict.items():
if isinstance(value, bool):
if value == True:
arg_list += ["--" + key]
arg_list += ["--" + key.replace('_', '-')]
elif value == "" or value is None:
continue
else:
arg_list += ["--" + key, str(value)]
arg_list += ["--" + key.replace('_', '-'), str(value)]
print("Running usrp_to_file " + " ".join(arg_list))
try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment