From 95467ef15329ec8efe411c126eb75cccbd3b3665 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 7 Jun 2023 22:44:15 +0000 Subject: [PATCH] Bug 1836415 - Upgrade uniffi-bindgen-gecko-js to clap 4. r=bdk Differential Revision: https://phabricator.services.mozilla.com/D179752 --- toolkit/components/uniffi-bindgen-gecko-js/Cargo.toml | 2 +- toolkit/components/uniffi-bindgen-gecko-js/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/toolkit/components/uniffi-bindgen-gecko-js/Cargo.toml b/toolkit/components/uniffi-bindgen-gecko-js/Cargo.toml index b28f455e3bb6..95df6b049662 100644 --- a/toolkit/components/uniffi-bindgen-gecko-js/Cargo.toml +++ b/toolkit/components/uniffi-bindgen-gecko-js/Cargo.toml @@ -11,7 +11,7 @@ path = "src/main.rs" [dependencies] anyhow = "1" askama = { version = "0.11", default-features = false, features = ["config"] } -clap = { version = "3.1", default-features = false, features = ["std", "derive", "cargo"] } +clap = { version = "4", default-features = false, features = ["std", "derive", "cargo"] } extend = "1.1" heck = "0.4" uniffi = { workspace = true } diff --git a/toolkit/components/uniffi-bindgen-gecko-js/src/lib.rs b/toolkit/components/uniffi-bindgen-gecko-js/src/lib.rs index 965ead26db8a..1c09943fc3e7 100644 --- a/toolkit/components/uniffi-bindgen-gecko-js/src/lib.rs +++ b/toolkit/components/uniffi-bindgen-gecko-js/src/lib.rs @@ -39,10 +39,10 @@ struct CliArgs { #[clap(long, value_name = "FILE")] fixture_cpp_path: Utf8PathBuf, - #[clap(long, multiple_values = true, value_name = "FILES")] + #[clap(long, num_args = 1.., value_name = "FILES")] udl_files: Vec, - #[clap(long, multiple_values = true, value_name = "FILES")] + #[clap(long, num_args = 1.., value_name = "FILES")] fixture_udl_files: Vec, }