Closed nerdo closed 1 year ago
The application bug is the following two lines:
#[group(multiple = false, requires("mongo-db"))]
// ...
#[group(multiple = false, requires("surreal-db"))]
// ...
The MongoDbConfig
is requiring that a group or argument named mongo-db
to be present but nothing exists with that ID. The same with surreal-db
.
I have a PR up for improving the error messages for this
Ah, I think I wrote that in attempt to make those fields required if surreal or mongo were selected as the target respectively, but I obviously did it wrong - and honestly, forgot I even had that there. Thanks for the feedback. And thanks for adding the PR improving the error message. I had no idea what the issue was.
Please complete the following tasks
Rust Version
1.6.9
Clap Version
4.2.1
Minimal reproducible code
Steps to reproduce the bug with the above code
Run the code in the playground.
There are some commented out sections of code, with descriptions to illustrate other behavior. This ticket documents the code as it currently stands, though.
Actual Behaviour
Code panics and crashes during parsing.
Expected Behaviour
I expected to see the help screen saying that --target is a required field.
Additional Context
No response
Debug Output
No response