fixup icepick workflow argument requirements
This commit is contained in:
parent
e31690439f
commit
611aad6665
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue