Skip to content

Commit

Permalink
Improve json-from-wast -h output (bytecodealliance#1893)
Browse files Browse the repository at this point in the history
* Improve `json-from-wast -h` output

Don't render a long variable name placeholder as
`ALLOW_CONFUSING_UNICODE` and instead render it just as `ALLOW`.

* Update src/bin/wasm-tools/json_from_wast.rs

Co-authored-by: Nick Fitzgerald <[email protected]>

---------

Co-authored-by: Nick Fitzgerald <[email protected]>
  • Loading branch information
alexcrichton and fitzgen authored Nov 4, 2024
1 parent 1842fb6 commit fce817c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/wasm-tools/json_from_wast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub struct Opts {
///
/// This is defaulted to `true` to enable parsing all upstream spec tests
/// but can be disabled if desired too.
#[clap(long)]
#[clap(long, value_name = "true|false")]
allow_confusing_unicode: Option<bool>,
}

Expand Down

0 comments on commit fce817c

Please sign in to comment.