From 5ff266689ecb171c4d6c5b1c5f265ec331387ee8 Mon Sep 17 00:00:00 2001 From: Louis Lacoste Date: Sat, 10 Sep 2022 10:28:10 +0200 Subject: [PATCH] Changed the printing of all args to verbose mode --- gandyndns.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gandyndns.py b/gandyndns.py index 1d06932..073f182 100644 --- a/gandyndns.py +++ b/gandyndns.py @@ -21,7 +21,7 @@ parser.add_argument("--type", metavar="TYPE", default='A', parser.add_argument("--ttl", metavar="TTL", default=10800, help="The Time To Live in seconds. This is the number of seconds the record must be stored in cache. Default value is 10800s (3hrs).", type=int) args = parser.parse_args() -print(args) + verbose = args.verbose domain = args.domain @@ -31,6 +31,9 @@ record_type = args.type ttl = args.ttl destination = args.destination +if verbose: + print(f"The parsed args : {args}") + domain_record_string = f"DNS {record_type} record for {subdomain}.{domain}" domain_record_string_lenght = len(domain_record_string)