提交 71794261 编写于 作者: Y Yang Zhang 提交者: GitHub

Limit split of cli options to first "=" (#2967)

上级 d750aa7a
......@@ -63,7 +63,7 @@ class ArgsParser(ArgumentParser):
return config
for s in opts:
s = s.strip()
k, v = s.split('=')
k, v = s.split('=', maxsplit=1)
if '.' not in k:
config[k] = yaml.load(v, Loader=yaml.Loader)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册