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

Fix command line parsing for non module options (#2839)

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