提交 64f97a9f 编写于 作者: X Xi Chen

covering edge cases

上级 af86296e
......@@ -337,7 +337,7 @@ def log_to_file(source, filename):
def parse_command(command_raw, defaults={}):
if not command_raw:
return ""
command_raw = ""
commands_processed = []
parameter_map = copy.copy(defaults)
for seg in command_raw.split(","):
......@@ -348,7 +348,7 @@ def parse_command(command_raw, defaults={}):
else:
commands_processed.append(seg)
for key, val in parameter_map.iteritems():
commands_processed.append("--" + key + " " + val)
commands_processed.append("--" + key + " " + str(val))
return " ".join(commands_processed)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册