pass debug to Conf init, so it can print from the beginnig
This commit is contained in:
parent
ee19f4b1b1
commit
d8bb56cb7b
@ -17,10 +17,9 @@ def main():
|
|||||||
help='userconfig2.cfg config file',
|
help='userconfig2.cfg config file',
|
||||||
dest='file', action='store')
|
dest='file', action='store')
|
||||||
cmdline = parser.parse_args()
|
cmdline = parser.parse_args()
|
||||||
cfg = Conf(cmdline.file)
|
|
||||||
debug = Debug()
|
debug = Debug()
|
||||||
debug.set_verbose(cmdline.verbose)
|
debug.set_verbose(cmdline.verbose)
|
||||||
cfg.set_debug(debug)
|
cfg = Conf(filename=cmdline.file, debug=debug)
|
||||||
uc = Userconfig(cfg)
|
uc = Userconfig(cfg)
|
||||||
|
|
||||||
cfg.debug.stdout(f"Verbose level is {cfg.debug.get_verbose()}", 1)
|
cfg.debug.stdout(f"Verbose level is {cfg.debug.get_verbose()}", 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user