def configure(args):
opts = parse_args(args)
config = {}
if opts["config"] is None:
config.update(toml.loads(open(opts["config"]).read()))
opts = {key: value for key, value in opts.items()
if value is not None}
config.update(opts)
if config["Verbose"]:
print("Configuration:")
PP.pprint(config)
return config
评论列表
文章目录