Remove -batch_size error message

This commit is contained in:
Andrew Ayer
2025-09-19 22:33:53 -04:00
parent a7e759a2df
commit d7ec166362

View File

@@ -161,7 +161,6 @@ func main() {
loglist.UserAgent = ctclient.UserAgent
var flags struct {
batchSize bool
email []string
healthcheck time.Duration
logs string
@@ -174,7 +173,6 @@ func main() {
version bool
watchlist string
}
flag.Func("batch_size", "Obsolete; do not use", func(string) error { flags.batchSize = true; return nil }) // TODO: remove in 0.21.0
flag.Func("email", "Email address to contact when matching certificate is discovered (repeatable)", appendFunc(&flags.email))
flag.DurationVar(&flags.healthcheck, "healthcheck", 24*time.Hour, "How frequently to perform a health check")
flag.StringVar(&flags.logs, "logs", defaultLogList, "File path or URL of JSON list of logs to monitor")
@@ -188,10 +186,6 @@ func main() {
flag.StringVar(&flags.watchlist, "watchlist", defaultWatchListPathIfExists(), "File containing domain names to watch")
flag.Parse()
if flags.batchSize {
fmt.Fprintf(os.Stderr, "%s: -batch_size is obsolete; please remove it from your command line\n", programName)
os.Exit(2)
}
if flags.version {
fmt.Fprintf(os.Stdout, "certspotter version %s (%s)\n", version, source)
os.Exit(0)