CLI entry point and fetch orchestration. Source: cmd/isthislegit/main.go. Package main exposes no exported symbols; this page documents behavior.
Syntax: isthislegit [FLAGS] <legit_domain> <suspect_domain>. Flags -v/--verbose, -j/--json, -k/--insecure (skips RDAP TLS verification with a warning), --timeout=DUR (Go duration, default 5s), --scale, -h/--help, plus a -- separator. Unknown flags and anything other than exactly two positional domains exit 1 with a usage message. Domains are normalized with dns.NormalizeDomain and validated with dns.ValidSyntax. Fail-closed errors include the underlying fetch cause(s).
| Budget | Value |
|---|---|
| Global deadline (both domains) | 15 seconds |
| Per-call deadline (DNS, TLS, RDAP) | 5 seconds, adjustable with --timeout |
| Attempts per call | 3, with 1 second between retries |
Current version string is 1.01, printed in the banner, JSON output, and --scale header. Build target: CGO_ENABLED=0 go build -ldflags="-s -w" -o isthislegit ./cmd/isthislegit.