“f6c9f56394838021af5db26d046f3c90606a17fc”上不存在“develop/doc/api/v2/fluid/regularizer.html”
提交 b0783c79 编写于 作者: Y Yang Zhang 提交者: qingqing01

Fix a bug in command line option parsing (#2841)

option should not be overridden by subsequent options of the same module
上级 c755cdff
......@@ -68,6 +68,7 @@ class ArgsParser(ArgumentParser):
config[k] = yaml.load(v, Loader=yaml.Loader)
else:
keys = k.split('.')
if keys[0] not in config:
config[keys[0]] = {}
cur = config[keys[0]]
for idx, key in enumerate(keys[1:]):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册