Changed the printing of all args to verbose mode
This commit is contained in:
parent
241b8f5736
commit
5ff266689e
1 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ parser.add_argument("--type", metavar="TYPE", default='A',
|
||||||
parser.add_argument("--ttl", metavar="TTL", default=10800,
|
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)
|
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()
|
args = parser.parse_args()
|
||||||
print(args)
|
|
||||||
|
|
||||||
verbose = args.verbose
|
verbose = args.verbose
|
||||||
domain = args.domain
|
domain = args.domain
|
||||||
|
|
@ -31,6 +31,9 @@ record_type = args.type
|
||||||
ttl = args.ttl
|
ttl = args.ttl
|
||||||
destination = args.destination
|
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 = f"DNS {record_type} record for {subdomain}.{domain}"
|
||||||
|
|
||||||
domain_record_string_lenght = len(domain_record_string)
|
domain_record_string_lenght = len(domain_record_string)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue