From 3c1d0e06554fe748c4f0a947667532de5d4791f1 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Sun, 15 Dec 2024 22:09:12 +0100 Subject: [PATCH] Fix CLI binary names --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 2 +- crates/cli/src/bin/wasm2es6js.rs | 1 + crates/cli/tests/wasm-bindgen/main.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 7d33d7b4208..27cff5952d9 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -28,7 +28,7 @@ mod server; mod shell; #[derive(Parser)] -#[command(version, about, long_about = None)] +#[command(name = "wasm-bindgen-test-runner", version, about, long_about = None)] struct Cli { #[arg( index = 1, diff --git a/crates/cli/src/bin/wasm2es6js.rs b/crates/cli/src/bin/wasm2es6js.rs index 20204277629..6a13a6ae550 100644 --- a/crates/cli/src/bin/wasm2es6js.rs +++ b/crates/cli/src/bin/wasm2es6js.rs @@ -5,6 +5,7 @@ use std::path::PathBuf; #[derive(Parser, Debug)] #[command( + name = "wasm2es6js", version, about, long_about = None, diff --git a/crates/cli/tests/wasm-bindgen/main.rs b/crates/cli/tests/wasm-bindgen/main.rs index 3ae132cb0c6..8961a7a4a70 100644 --- a/crates/cli/tests/wasm-bindgen/main.rs +++ b/crates/cli/tests/wasm-bindgen/main.rs @@ -120,7 +120,7 @@ fn version_useful() { .arg("-V") .assert() .stdout(str::ends_with("\n")) - .stdout(str::starts_with("wasm-bindgen-cli ")) + .stdout(str::starts_with("wasm-bindgen ")) .success(); }