}
my $opt = $cmd{$c}->{opt} or next;
- foreach my $s (sort keys %$opt) {
+ foreach (sort keys %$opt) {
# prints out arguments as they should be passed:
my $x = s#[:=]s$## ? '<arg>' :
(s#[:=]i$## ? '<num>' : '');
- print $fd ' ' x 21, join(', ', map { length $s > 1 ?
- "--$s" : "-$s" }
- split /\|/, $s)," $x\n";
+ print $fd ' ' x 21, join(', ', map { length $_ > 1 ?
+ "--$_" : "-$_" }
+ split /\|/, $_)," $x\n";
}
}
exit $exit;