Project
vgrep
Description
In commands.rs line 1079, mode parsing uses value.parse()? which relies on the Mode enum's FromStr implementation. If invalid values are provided, the error message may be unclear.
Error Message
Debug Logs
System Information
OS: Any
Rust Version: 1.75+
Screenshots
No response
Steps to Reproduce
- Run
vgrep config set mode invalid_value
- Observe error
Expected Behavior
Clear error listing valid mode options (Local, Server)
Actual Behavior
Generic parse error without listing valid options
Additional Context
No response