Skip to content

Commit f16ce89

Browse files
committed
adds check to parse_command_line_template to catch options that don't have trailing field
1 parent da37abb commit f16ce89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pydra/compose/shell/builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ def from_type_str(type_str) -> type:
512512
f"Found unknown token {token!r} in command line template: {template}"
513513
)
514514

515+
if option:
516+
raise ValueError(f"Found an option without a field: {option!r}")
517+
515518
remaining_pos = remaining_positions(arguments, len(arguments) + 1, 1)
516519

517520
for argument in arguments:

0 commit comments

Comments
 (0)