Remove unnecessary num_args for an optional single arg

This commit is contained in:
David Smith 2023-05-14 08:39:37 -04:00
parent 0f943c3e64
commit 003aacbf28
No known key found for this signature in database
GPG key ID: 979D8D09D9570EED

View file

@ -85,7 +85,6 @@ pub fn build_app() -> Command {
let flag_max_threads = Arg::new(FLAG_MAX_THREADS)
.long(FLAG_MAX_THREADS)
.help("Limit the number of threads (and hence cores) used during compilation")
.num_args(0..=1)
.value_parser(value_parser!(usize))
.required(false);
@ -128,7 +127,6 @@ pub fn build_app() -> Command {
let flag_wasm_stack_size_kb = Arg::new(FLAG_WASM_STACK_SIZE_KB)
.long(FLAG_WASM_STACK_SIZE_KB)
.help("Stack size in kilobytes for wasm32 target\n(This only applies when --dev also provided.)")
.num_args(0..=1)
.value_parser(value_parser!(u32))
.required(false);