fixup icepick workflow argument requirements

This commit is contained in:
Ryan Heywood 2025-01-23 04:07:27 -05:00
parent e31690439f
commit 611aad6665
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 2 additions and 1 deletions

View File

@ -88,8 +88,9 @@ pub fn generate_command(workflow: &Workflow) -> clap::Command {
"A file containing any inputs not passed on the command line"
));
for input in &workflow.inputs {
// can also be included in the JSON file, so we won't mark this as required.
let arg = clap::Arg::new(input)
.required(true)
.required(false)
.long(input.replace('_', "-"))
.value_name(input.to_uppercase());
command = command.arg(arg);