Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make UCI commands show up in the help menu #33

Open
dannyhammer opened this issue Oct 12, 2024 · 0 comments
Open

Make UCI commands show up in the help menu #33

dannyhammer opened this issue Oct 12, 2024 · 0 comments

Comments

@dannyhammer
Copy link
Owner

This is a cumbersome task, as it likely requires modifying the uci-parser crate.

Ideally, we'd like UCI commands to appear in the help menu. The reason this isn't done currently is because we're using clap to automatically parse all engine commands, but uci-parser uses nom to manually parse them. As far as I have found in my experiments, clap can't appropriately parse UCI commands because of all the optional arguments. It may be possible, but I haven't found a way.

Anyway, it would be nice to modify... something to allow this to be possible. I don't really know where to begin. I've already tried modifying uci-parser to parse with clap, and that didn't go well. Maybe adding the UCI commands onto EngineCommand directly, and having a value_parser function for their args?

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

No branches or pull requests

1 participant