fn cmd_line_override(&mut self, args: DriverArgs) {
        if let Some(tmp) = args.service_prefix {
            fx_log_info!(
                "cmdline overriding service_prefix from {:?} to {:?}",
                self.service_prefix,
                tmp
            );
            self.service_prefix = tmp;
        }

        if let Some(tmp) = args.max_auto_restarts {
            fx_log_info!(
                "cmdline overriding max_auto_restarts from {} to {}",
                self.max_auto_restarts,
                tmp
            );
            self.max_auto_restarts = tmp;
        }

        if let Some(tmp) = args.name {
            fx_log_info!("cmdline overriding name from {:?} to {:?}", self.name, tmp);
            self.name = tmp;
        }

        if let Some(tmp) = args.backbone_name {
            fx_log_info!(
                "cmdline overriding backbone_name from {:?} to {:?}",
                self.backbone_name,
                tmp
            );
            self.backbone_name = Some(tmp);
        }

        if let Some(x) = args.verbosity {
            let severity = fuchsia_syslog::get_severity_from_verbosity(x);
            fx_log_info!("cmdline log verbosity set to {:?}", x);
            self.log_level = severity;
        }

        if let Some(tmp) = args.ot_radio_path {
            fx_log_info!(
                "cmdline overriding ot_radio_path from {:?} to {:?}",
                self.ot_radio_path,
                tmp
            );
            self.ot_radio_path = Some(tmp);
        }
    }
/// Override the config value with command-line option if it is passed
Override the config value with command-line option if it is passed
Override the config value with command - line option if it is passed
fn cmd_line_override(&mut self, args: DriverArgs) {
        if let Some(tmp) = args.service_prefix {
            fx_log_info!(
                "cmdline overriding service_prefix from {:?} to {:?}",
                self.service_prefix,
                tmp
            );
            self.service_prefix = tmp;
        }
        if let Some(tmp) = args.max_auto_restarts {
            fx_log_info!(
                "cmdline overriding max_auto_restarts from {} to {}",
                self.max_auto_restarts,
                tmp
            );
            self.max_auto_restarts = tmp;
        }
        if let Some(tmp) = args.name {
            fx_log_info!("cmdline overriding name from {:?} to {:?}", self.name, tmp);
            self.name = tmp;
        }
        if let Some(tmp) = args.backbone_name {
            fx_log_info!(
                "cmdline overriding backbone_name from {:?} to {:?}",
                self.backbone_name,
                tmp
            );
            self.backbone_name = Some(tmp);
        }
        if let Some(x) = args.verbosity {
            let severity = fuchsia_syslog::get_severity_from_verbosity(x);
            fx_log_info!("cmdline log verbosity set to {:?}", x);
            self.log_level = severity;
        }
        if let Some(tmp) = args.ot_radio_path {
            fx_log_info!(
                "cmdline overriding ot_radio_path from {:?} to {:?}",
                self.ot_radio_path,
                tmp
            );
            self.ot_radio_path = Some(tmp);
        }
    }
fn cmd_line_override ( & mut self , args : DriverArgs ) { if let Some ( tmp ) = args . service_prefix { fx_log_info ! ( " " self service_prefix tmp ) ; self . service_prefix = tmp ; } if let Some ( tmp ) = args . max_auto_restarts { fx_log_info ! ( " " self max_auto_restarts tmp ) ; self . max_auto_restarts = tmp ; } if let Some ( tmp ) = args . name { fx_log_info ! ( " " self name tmp ) ; self . name = tmp ; } if let Some ( tmp ) = args . backbone_name { fx_log_info ! ( " " self backbone_name tmp ) ; self . backbone_name = Some ( tmp ) ; } if let Some ( x ) = args . verbosity { let severity = fuchsia_syslog :: get_severity_from_verbosity ( x ) ; fx_log_info ! ( " " x ) ; self . log_level = severity ; } if let Some ( tmp ) = args . ot_radio_path { fx_log_info ! ( " " self ot_radio_path tmp ) ; self . ot_radio_path = Some ( tmp ) ; } }
Override the config value with command-line option if it is passed
Override the config value with command - line option if it is passed
&mut self
args
DriverArgs
&mut self
args
DriverArgs