"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "658e60cf7331dfd12672de1195a8c10ca1d82f08"
Commit 3b46ddf0 authored by ZongYuan Zhan's avatar ZongYuan Zhan Committed by Kai Chen
Browse files

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

parent 7cb4d804
...@@ -103,7 +103,7 @@ class Config(object): ...@@ -103,7 +103,7 @@ class Config(object):
partial_parser = ArgumentParser(description=description) partial_parser = ArgumentParser(description=description)
partial_parser.add_argument('config', help='config file path') partial_parser.add_argument('config', help='config file path')
cfg_file = partial_parser.parse_known_args()[0].config 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 = ArgumentParser(description=description)
parser.add_argument('config', help='config file path') parser.add_argument('config', help='config file path')
add_args(parser, cfg) add_args(parser, cfg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment