Skip to main content

duration_flag

Function duration_flag 

Source
pub fn duration_flag(
    long: &'static str,
    short: Option<char>,
    default: &'static str,
    help: &'static str,
) -> Arg
Expand description

A duration flag: the value is a signed sequence of decimal numbers with unit suffixes (ns, us, ms, s, m, h); default is the text form of the default (e.g. 1s, 8760h0m0s).