Code changes for clap 4 upgrade

This commit is contained in:
David Smith 2023-05-13 12:24:14 -04:00
parent 66f71b237b
commit 0f943c3e64
No known key found for this signature in database
GPG key ID: 979D8D09D9570EED
4 changed files with 125 additions and 116 deletions

View file

@ -44,8 +44,7 @@ fn main() -> io::Result<()> {
let args_for_app = Arg::new(ARGS_FOR_APP)
.help("Arguments to pass into the WebAssembly app\ne.g. `roc_wasm_interp app.wasm 123 123.45`")
.multiple_values(true)
.takes_value(true);
.num_args(0..);
let app = Command::new("roc_wasm_interp")
.about("Run the given .wasm file")
@ -53,7 +52,6 @@ fn main() -> io::Result<()> {
.arg(flag_debug)
.arg(flag_hex)
.arg(wasm_file_to_run)
.trailing_var_arg(true)
.arg(args_for_app);
// Parse the command line arguments