diff options
| -rwxr-xr-x | cgcc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -31,10 +31,10 @@ while (@ARGV) { # Ditto for stdin. $do_check = 1 if $_ eq '-'; - if ($_ eq '-o') { - # Need to be checked explicitly since '-o -' is - # sometimes used and the '-' would otherwise be - # processed as an option. + if (/^-(o|MF|MT|MQ)$/) { + # Need to be checked explicitly since otherwise + # the argument would be processed as a + # (non-existant) source file or as an option. die ("$0: missing argument for $_") if !@ARGV; $nargs = 1; } |
