mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
use fallible (instead of panicking) arg getter
This commit is contained in:
parent
0105fa4c4a
commit
91e8e45523
1 changed files with 3 additions and 1 deletions
|
@ -525,7 +525,9 @@ pub fn build(
|
|||
}
|
||||
|
||||
let wasm_dev_stack_bytes: Option<u32> = matches
|
||||
.value_of(FLAG_WASM_STACK_SIZE_KB)
|
||||
.try_get_one::<&str>(FLAG_WASM_STACK_SIZE_KB)
|
||||
.ok()
|
||||
.flatten()
|
||||
.and_then(|s| s.parse::<u32>().ok())
|
||||
.map(|x| x * 1024);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue