pub fn new(config_file: Option<String>) -> Result<Self, IoError> {
        
        let config = if let Some(file) = config_file {
            ScConfig::read_sc_config_from_custom_file(file)?
        } else {
            ScConfig::read_sc_config_from_default_file()?
        };
        Ok(config)
    }
/// generate sc configuration based on configuration file provided
generate sc configuration based on configuration file provided
generate sc configuration based on configuration file provided
pub fn new(config_file: Option<String>) -> Result<Self, IoError> {
        let config = if let Some(file) = config_file {
            ScConfig::read_sc_config_from_custom_file(file)?
        } else {
            ScConfig::read_sc_config_from_default_file()?
        };
        Ok(config)
    }
pub fn new ( config_file : Option < String > ) -> Result < Self , IoError > { let config = if let Some ( file ) = config_file { ScConfig :: read_sc_config_from_custom_file ( file ) ? } else { ScConfig :: read_sc_config_from_default_file ( ) ? } ; Ok ( config ) }
generate sc configuration based on configuration file provided
generate sc configuration based on configuration file provided
config_file
Option<String>
config_file
Option<String>