mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Code changes for clap 4 upgrade
This commit is contained in:
parent
66f71b237b
commit
0f943c3e64
4 changed files with 125 additions and 116 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue