Skip to content

Comments

feat: add --verbose option for detailed search progress logging#45

Merged
sonesuke merged 1 commit intomainfrom
feat/verbose-option
Feb 23, 2026
Merged

feat: add --verbose option for detailed search progress logging#45
sonesuke merged 1 commit intomainfrom
feat/verbose-option

Conversation

@sonesuke
Copy link
Owner

Summary

  • Add --verbose flag to search and fetch commands
  • Provides detailed logging of search process (URLs, pagination, results count)
  • Update CI to test verbose mode functionality

Changes

  • CLI (src/cli/mod.rs): Add --verbose flag to SearchArgs and FetchArgs
  • Core (src/core/patent_search.rs): Implement verbose logging in search process
  • MCP (src/mcp/mod.rs): Update PatentSearcher::new call to include verbose parameter
  • CI (.github/workflows/ci.yml): Add verbose mode test step

Verbose Output Examples

When using --verbose, the CLI will output:

  • Search URL being accessed
  • Page loading status
  • Pagination progress (page X of Y)
  • Results count per page
  • Total patents collected
  • Truncation status when limit is reached
# Usage
google-patent-cli search --query "machine learning" --verbose
google-patent-cli fetch US1234567 --verbose

Test plan

  • Pre-commit checks pass (fmt, clippy, test)
  • Manual testing with --verbose flag
  • CI will test verbose mode

🤖 Generated with Claude Code

This commit adds a --verbose flag to search and fetch commands that provides
detailed logging of the search process, including:
- Search URLs being accessed
- Page loading status
- Pagination progress
- Results count per page
- Total patents collected

Additionally, CI has been updated to test verbose mode functionality.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@sonesuke sonesuke merged commit 3ebae2b into main Feb 23, 2026
4 checks passed
@sonesuke sonesuke deleted the feat/verbose-option branch February 23, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants