diff --git a/cmd/search/main.go b/cmd/search/main.go index a89f758..3b2e677 100644 --- a/cmd/search/main.go +++ b/cmd/search/main.go @@ -20,8 +20,10 @@ func main() { flag.Parse() if flag.NArg() < 1 { - fmt.Fprintln(os.Stderr, "Error: Query or URLs required") - os.Exit(1) + fmt.Printf("Usage: %s [options] \n", os.Args[0]) + fmt.Println("Options:") + flag.PrintDefaults() + os.Exit(0) } // Validate provider flags