Refactoring & install with pyproject.toml #1
@ -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