diff --git a/crates/cuddle-ci/src/cli.rs b/crates/cuddle-ci/src/cli.rs index 8e86036..138dd56 100644 --- a/crates/cuddle-ci/src/cli.rs +++ b/crates/cuddle-ci/src/cli.rs @@ -46,14 +46,17 @@ impl CuddleCI { self } - pub async fn execute(&mut self, args: impl IntoIterator) -> eyre::Result<()> { + pub async fn execute( + &mut self, + args: impl IntoIterator>, + ) -> eyre::Result<()> { let matches = clap::Command::new("cuddle-ci") .about("is a wrapper around common CI actions") .subcommand(clap::Command::new("pr")) .subcommand(clap::Command::new("main")) .subcommand(clap::Command::new("release")) .subcommand_required(true) - .try_get_matches_from(args.into_iter())?; + .try_get_matches_from(args.into_iter().map(|a| a.into()).collect::>())?; match matches.subcommand() { Some((name, args)) => match (name, args) {