Skip to content

Making usage & help output simplier and clear

ebal requested to merge help into master

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

Merge request reports