-
Notifications
You must be signed in to change notification settings - Fork 68
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
Unnecessary CustomCli: clap::Args
bound in Cucumber::with_cli()
#257
Comments
@yds12 |
Thanks for the quick feedback @ilslv . In my case, it's not much about any particular option but the Cli config as a whole. The problem I have, to give more context, is that we have a complex setup with a library wrapping cucumber-rs and other binary projects that import that library. Sometimes those projects don't necessarily have clap, but they still might have their own CLI options, so we would benefit if we could pass to cucumber-rs something pretty much identical to the My understanding is that this is not currently possible, so this issue would be like a feature suggestion (if it fits with the project's goals). But please let me know if I am missing something. |
@yds12 as far as I can understand the problem is in use clap::Args;
#[derive(Args, Clone, Copy, Debug)]
#[group(skip)]
struct Empty<T: Default> {
#[arg(skip)]
inner: T,
} |
Thanks @ilslv, that helps! |
CustomCli: clap::Args
bound in Cucumber::with_cli()
This issue originates in clap-rs/clap#3032, so we can't easily remove Theoretically we can try implementing |
I usually use the
Cucumber::with_cli
method to configure both the cucumber options (such as--tags
and--features
) and also custom options. Is there a way to pass these configurations without using a struct that derivesclap::Args
?The text was updated successfully, but these errors were encountered: