Dump args on verbose log

This commit is contained in:
Tim Van Baak 2020-01-13 12:40:43 -08:00
parent 5d042326e9
commit 65049d8202
1 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,12 @@ def main(argv):
if args.command and args.command != "init": if args.command and args.command != "init":
config.init_config(args) config.init_config(args)
# If verbose logging, dump args namespace
if args.verbose:
config.logger.debug("amanuensis")
for key, val in vars(args).items():
config.logger.debug(" {}: {}".format(key, val))
# Execute command. # Execute command.
args.func(args) args.func(args)