From d7ec166362f9526d15af7e2475bf9b2d997da255 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 19 Sep 2025 22:33:53 -0400 Subject: [PATCH] Remove -batch_size error message --- cmd/certspotter/main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd/certspotter/main.go b/cmd/certspotter/main.go index 63604df..370ba36 100644 --- a/cmd/certspotter/main.go +++ b/cmd/certspotter/main.go @@ -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)