Skip to content

Commit 467204b

Browse files
authored
Fix help text for component new --import-name (#2336)
Revise the help text to indicate that both OLD and NEW are required when using the `--import-name` flag.
1 parent 1c17a18 commit 467204b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/wasm-tools/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub struct NewOpts {
8888
/// name.
8989
///
9090
/// If the old import name is not found, it is ignored.
91-
#[clap(long = "import-name", value_name = "[OLD]=NEW", value_parser = parse_import_name)]
91+
#[clap(long = "import-name", value_name = "OLD=NEW", value_parser = parse_import_name)]
9292
import_names: Vec<(String, String)>,
9393

9494
#[clap(flatten)]

0 commit comments

Comments
 (0)