diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 20db6c8c5a..cab9a56900 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -525,7 +525,9 @@ pub fn build( } let wasm_dev_stack_bytes: Option = matches - .value_of(FLAG_WASM_STACK_SIZE_KB) + .try_get_one::<&str>(FLAG_WASM_STACK_SIZE_KB) + .ok() + .flatten() .and_then(|s| s.parse::().ok()) .map(|x| x * 1024);