Fix spelling mistake in Config.auto_argparser. (#106)

pull/107/head
ZongYuan Zhan 2019-08-09 00:01:27 +08:00 committed by Kai Chen
parent 7cb4d804e2
commit 3b46ddf0d3
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class Config(object):
partial_parser = ArgumentParser(description=description)
partial_parser.add_argument('config', help='config file path')
cfg_file = partial_parser.parse_known_args()[0].config
cfg = Config.from_file(cfg_file)
cfg = Config.fromfile(cfg_file)
parser = ArgumentParser(description=description)
parser.add_argument('config', help='config file path')
add_args(parser, cfg)