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)