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

Multiple outputs functionality is broken #231

Closed
serzhshakur opened this issue Oct 12, 2022 · 2 comments · Fixed by #232
Closed

Multiple outputs functionality is broken #231

serzhshakur opened this issue Oct 12, 2022 · 2 comments · Fixed by #232
Assignees
Labels
bug Something isn't working
Milestone

Comments

@serzhshakur
Copy link

With retrying mechanism being introduced it is no longer possible to execute tests with multiple outputs.

The error is thrown by clap when trying to execute tests

thread 'main' panicked at 'Command cucumber: Argument names must be unique, but 'verbose' is in use by more than one argument or group', /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.0.13/src/builder/debug_asserts.rs:95:13
stack backtrace:
   0: rust_begin_unwind
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14
   2: clap::builder::debug_asserts::assert_app
             at /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.0.13/src/builder/debug_asserts.rs:95:13
   3: clap::builder::command::Command::_build_self
             at /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.0.13/src/builder/command.rs:3918:13
   4: clap::builder::command::Command::_do_parse
             at /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.0.13/src/builder/command.rs:3788:9
   5: clap::builder::command::Command::try_get_matches_from_mut
             at /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.0.13/src/builder/command.rs:708:9
   6: clap::builder::command::Command::get_matches_from
             at /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.0.13/src/builder/command.rs:578:9
   7: clap::builder::command::Command::get_matches
             at /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.0.13/src/builder/command.rs:490:9
   8: clap::derive::Parser::parse
             at /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.0.13/src/derive.rs:82:27
   9: cucumber::cli::Opts<Parser,Runner,Writer,Custom>::parsed
             at /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/cucumber-0.15.0/src/cli.rs:151:9

I've created an example repo with multiple outputs setup where this issue can be observed.

@tyranron tyranron added the bug Something isn't working label Oct 12, 2022
@tyranron tyranron added this to the 0.15.1 milestone Oct 12, 2022
tyranron pushed a commit that referenced this issue Oct 12, 2022
- document in Book how to deal with actually overlapping CLI options
@tyranron
Copy link
Member

@serzhshakur fixed in #232, released in 0.15.1.

@serzhshakur
Copy link
Author

Oh, that was really fast! Thank you very much indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants