Skip to content

Commit 69607f6

Browse files
authored
Fix CLI binary names (#4355)
1 parent 7e5f2f1 commit 69607f6

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

crates/cli/src/bin/wasm-bindgen-test-runner/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mod server;
2828
mod shell;
2929

3030
#[derive(Parser)]
31-
#[command(version, about, long_about = None)]
31+
#[command(name = "wasm-bindgen-test-runner", version, about, long_about = None)]
3232
struct Cli {
3333
#[arg(
3434
index = 1,

crates/cli/src/bin/wasm-bindgen.rs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use wasm_bindgen_cli_support::{Bindgen, EncodeInto};
66

77
#[derive(Debug, Parser)]
88
#[command(
9+
name = "wasm-bindgen",
910
version,
1011
about,
1112
long_about = None,

crates/cli/src/bin/wasm2es6js.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::path::PathBuf;
55

66
#[derive(Parser, Debug)]
77
#[command(
8+
name = "wasm2es6js",
89
version,
910
about,
1011
long_about = None,

crates/cli/tests/wasm-bindgen/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fn version_useful() {
120120
.arg("-V")
121121
.assert()
122122
.stdout(str::ends_with("\n"))
123-
.stdout(str::starts_with("wasm-bindgen-cli "))
123+
.stdout(str::starts_with("wasm-bindgen "))
124124
.success();
125125
}
126126

0 commit comments

Comments
 (0)