pub fn from_cli(
        sc_host_port: Option<String>,
        spu_host_port: Option<String>,
        kf_host_port: Option<String>,
    ) -> Result<Self, ClientError> {

        let mut config = ProfileConfig::default();

        if let Some(host_port) = sc_host_port {
            let address: ServerAddress = host_port.try_into()?;
            config.sc_addr = Some(address);
        }

        if let Some(host_port) = spu_host_port {
            let address: ServerAddress = host_port.try_into()?;
            config.spu_addr = Some(address);
        }

        if let Some(host_port) = kf_host_port {
            let address: ServerAddress = host_port.try_into()?;
            config.kf_addr = Some(address);
        }

        Ok(config)
    }
/// generate config from cli parameter where we could have one of the config
generate config from cli parameter where we could have one of the config
generate config from cli parameter where we could have one of the config
pub fn from_cli(
        sc_host_port: Option<String>,
        spu_host_port: Option<String>,
        kf_host_port: Option<String>,
    ) -> Result<Self, ClientError> {
        let mut config = ProfileConfig::default();
        if let Some(host_port) = sc_host_port {
            let address: ServerAddress = host_port.try_into()?;
            config.sc_addr = Some(address);
        }
        if let Some(host_port) = spu_host_port {
            let address: ServerAddress = host_port.try_into()?;
            config.spu_addr = Some(address);
        }
        if let Some(host_port) = kf_host_port {
            let address: ServerAddress = host_port.try_into()?;
            config.kf_addr = Some(address);
        }
        Ok(config)
    }
pub fn from_cli ( sc_host_port : Option < String > , spu_host_port : Option < String > , kf_host_port : Option < String > , ) -> Result < Self , ClientError > { let mut config = ProfileConfig :: default ( ) ; if let Some ( host_port ) = sc_host_port { let address : ServerAddress = host_port . try_into ( ) ? ; config . sc_addr = Some ( address ) ; } if let Some ( host_port ) = spu_host_port { let address : ServerAddress = host_port . try_into ( ) ? ; config . spu_addr = Some ( address ) ; } if let Some ( host_port ) = kf_host_port { let address : ServerAddress = host_port . try_into ( ) ? ; config . kf_addr = Some ( address ) ; } Ok ( config ) }
generate config from cli parameter where we could have one of the config
generate config from cli parameter where we could have one of the config
sc_host_port
Option<String>
spu_host_port
Option<String>
kf_host_port
Option<String>
sc_host_port
Option<String>
spu_host_port
Option<String>
kf_host_port
Option<String>