diff --git a/crates/icepick/src/cli/workflow.rs b/crates/icepick/src/cli/workflow.rs index 6045a62..8500e04 100644 --- a/crates/icepick/src/cli/workflow.rs +++ b/crates/icepick/src/cli/workflow.rs @@ -124,15 +124,20 @@ fn load_inputs<'a>( .and_then(|f| serde_json::from_reader(f).ok()); for input in inputs { let identifier = &input.name; - match matches.get_one::(&input.name) { + match matches.get_one::(identifier) { Some(value) => { map.insert(identifier.clone(), value.clone()); continue; } None => { - if let Some(value) = input_file.as_ref().and_then(|f| f.get(identifier)) { - map.insert(identifier.clone(), value.clone()); - continue; + for aliasable_identifier in input.identifiers() { + if let Some(value) = input_file + .as_ref() + .and_then(|f| f.get(aliasable_identifier)) + { + map.insert(identifier.clone(), value.clone()); + continue; + } } } }