/// Process the log-file-rotations argument.
Process the log-file-rotations argument.
Process the log - file - rotations argument .
fn log_file_rotations(&mut self, arg: &str) {
        let re = Regex::new(r"^--log-file-rotations=(\d+)$")
            .unwrap();
        if let Some(caps) = re.captures(arg) {
            self.log_file_rotations = usize::from_str(caps.at(1).unwrap())
                .unwrap();
        } else {
            utils::error(RuntimeError::from(arg),
                EXIT_CODE_USAGE, "number expected");
        }
    }
fn log_file_rotations ( & mut self , arg : & str ) { let re = Regex :: new ( r"^--log-file-rotations=(\d+)$" ) . unwrap ( ) ; if let Some ( caps ) = re . captures ( arg ) { self . log_file_rotations = usize :: from_str ( caps . at ( 1 ) . unwrap ( ) ) . unwrap ( ) ; } else { utils :: error ( RuntimeError :: from ( arg ) , EXIT_CODE_USAGE , " " ) ; } }
Process the log-file-rotations argument.
Process the log - file - rotations argument .
&mut self
arg
&str