Function liboskar::cli_helpers::threshold [] [src]

pub fn threshold(s: Option<&str>) -> Option<u64>

Parse a threshold from a command-line flag.

Examples

use liboskar::prelude::*;

let threshold_string = Some("31M");
assert_eq!(threshold(threshold_string), Some(32505856))