pub fn num_threads_parser(arg: &str) -> Result<usize>
Parses the number of threads from a string.
This function is meant to be used with #[arg(..., value_parser = num_threads_parser)].
#[arg(..., value_parser = num_threads_parser)]