fix: Add --verbose flag to web subcommand

This commit is contained in:
Arik Jones (aider)
2024-09-14 20:41:23 -05:00
parent aaff602b3e
commit a6ebf0062a
3 changed files with 8 additions and 11 deletions

View File

@@ -29,13 +29,7 @@ func main() {
}
defer scraper.ClosePlaywright()
scraperConfig := scraper.Config{
URLs: []scraper.URLConfig{{URL: cfg.Scrape.URLs[0].URL}},
OutputType: cfg.Scrape.OutputType,
Verbose: false, // Set default verbosity
}
if err := cmd.Execute(cfg, scraperConfig); err != nil {
if err := cmd.Execute(cfg); err != nil {
fmt.Println(err)
os.Exit(1)
}