Skip to content

Commit 58e7359

Browse files
committed
for grouped command line options, check if each is allowed
1 parent a9dc3fa commit 58e7359

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/HLL/CommandLine.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ class HLL::CommandLine::Parser {
261261
while $iter {
262262
my $o := pir::shift($iter);
263263
pir::die("Option -$o requires a value and cannot be grouped") if self.wants-value($o);
264+
pir::die("Grouped options '$opt' contain $o, which is not a valid option") unless %!options{$o};
264265
$result.add-option($o, 1);
265266
}
266267
}

0 commit comments

Comments
 (0)