From 65049d8202da8887e4de81022f1dca643a906d3b Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 13 Jan 2020 12:40:43 -0800 Subject: [PATCH] Dump args on verbose log --- amanuensis/__main__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/amanuensis/__main__.py b/amanuensis/__main__.py index 71db5a2..444cca6 100644 --- a/amanuensis/__main__.py +++ b/amanuensis/__main__.py @@ -118,6 +118,12 @@ def main(argv): if args.command and args.command != "init": 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. args.func(args)