fix(search): expose pretty JSON option

AY
2mo ago
+16-5

Summary

  • restore the -p, --pretty option registration for firecrawl search
  • keep the existing search output behavior where pretty implies JSON output
  • add CLI argv coverage so firecrawl search --help exposes --pretty

Closes #181

Test Plan

  • pnpm run build
  • pnpm vitest run src/__tests__/cli-argv.test.ts src/__tests__/commands/search.test.ts
  • pnpm run format:check

The new CLI argv test failed before the option registration was restored because search help did not include --pretty; it passes after the change.


Summary by cubic

Fixes #181 by restoring the -p, --pretty flag for firecrawl search to enable pretty-printed JSON and show it in --help. Preserves behavior where --pretty implies JSON and adds a CLI argv test to prevent regressions.