added ppc server and mize run external subcommands
This commit is contained in:
@@ -387,14 +387,14 @@ pub fn load_part(mize: &mut Mize, part_name: &str, path: Option<String>) -> Mize
|
||||
pub fn config_from_cli_args(matches: &ArgMatches) -> MizeResult<ItemData> {
|
||||
let mut config = ItemData::new();
|
||||
|
||||
if let Some(config_file_path) = matches.get_one::<String>("config-file") {
|
||||
if let Some(config_file_path) = matches.get_one::<String>("config") {
|
||||
config.merge(config_from_file(config_file_path.to_string())?);
|
||||
trace!("config after --config-file arg: {}", config);
|
||||
trace!("config after --config arg: {}", config);
|
||||
}
|
||||
|
||||
if let Some(config_string) = matches.get_one::<String>("config") {
|
||||
if let Some(config_string) = matches.get_one::<String>("opt") {
|
||||
config.merge(data_from_string(config_string.to_string())?);
|
||||
trace!("config after --config arg: {}", config);
|
||||
trace!("config after --opt arg: {}", config);
|
||||
}
|
||||
|
||||
return Ok(config);
|
||||
|
||||
Reference in New Issue
Block a user