natesales / q

A tiny command line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH.
GNU General Public License v3.0
1.76k stars 62 forks source link

Standardize inverted boolean flags #80

Closed natesales closed 11 months ago

natesales commented 11 months ago

As of v0.16.0, we have some inverted flags, which make for confusing no-ops like q +nono-idcheck.

~ ▴ q -h | grep no
All long form (--) flags can be toggled with the dig-standard +[no]flag notation.
      --no-id-check            Disable checking of DNS response ID
      --no-reuse-conn          Use a new connection for each query
  -i, --tls-no-verify          Disable TLS certificate verification
      --quic-no-pmtud          Disable QUIC PMTU discovery
      --quic-no-length-prefix  Don't add RFC 9250 compliant length prefix
natesales commented 11 months ago

The only one I want to leave is -i/TLS insecure skip verify since that's a common enough convention.