Project
vgrep
Description
The CLI in commands.rs accepts max_results as a user-configurable option without validating that it's greater than zero. Setting max_results=0 leads to always-empty results with no warning.
Error Message
Debug Logs
System Information
OS: Any
Rust Version: 1.75+
Screenshots
No response
Steps to Reproduce
- Run
vgrep search 'query' --max-results 0
- Observe output
Expected Behavior
Either reject max_results=0 with an error, or warn the user that they've requested zero results
Actual Behavior
Silently returns empty results
Additional Context
No response
Project
vgrep
Description
The CLI in
commands.rsacceptsmax_resultsas a user-configurable option without validating that it's greater than zero. Settingmax_results=0leads to always-empty results with no warning.Error Message
Debug Logs
System Information
Screenshots
No response
Steps to Reproduce
vgrep search 'query' --max-results 0Expected Behavior
Either reject max_results=0 with an error, or warn the user that they've requested zero results
Actual Behavior
Silently returns empty results
Additional Context
No response