Making usage & help output simplier and clear
usage
$ doh-cli
usage: doh-cli [-h] [--debug] [--verbose] [--time] [--output {plain,json}]
[--dns {libredns, libredns-ads, google, cloudflare, quad9, cleanbrowsing, cira, cira-protect, cira-family}]
domain [A, AAAA, CNAME, MX, NS, SOA, SPF, SRV, TXT, CAA]
doh-cli: error: the following arguments are required: domain
help
$ doh-cli --help
usage: doh-cli [-h] [--debug] [--verbose] [--time] [--output {plain,json}]
[--dns {libredns, libredns-ads, google, cloudflare, quad9, cleanbrowsing, cira, cira-protect, cira-family}]
domain [A, AAAA, CNAME, MX, NS, SOA, SPF, SRV, TXT, CAA]
a simple DNS over HTTPS client
positional arguments:
domain The Domain Name System to resolve
A, AAAA, CNAME, MX, NS, SOA, SPF, SRV, TXT, CAA
Supported DNS Resourse Records
optional arguments:
-h, --help show this help message and exit
--debug show the entire response
--verbose show the entire request
--time show Query time
--output {plain,json}
Display DNS response in plain|json format
--dns {libredns, libredns-ads, google, cloudflare, quad9, cleanbrowsing, cira, cira-protect, cira-family}
Choose DNS server or provide your own DoH endpoint
eg. doh-cli libredns.gr