summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/pidl/pidl8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/pidl/pidl b/source4/pidl/pidl
index 57105b4472..dc85630241 100755
--- a/source4/pidl/pidl
+++ b/source4/pidl/pidl
@@ -542,7 +542,7 @@ Ethereal parsers:
}
# main program
-GetOptions (
+my $result = GetOptions (
'help|h|?' => \$opt_help,
'outputdir=s' => \$opt_outputdir,
'dump-idl' => \$opt_dump_idl,
@@ -569,6 +569,10 @@ GetOptions (
'warn-compat' => \$opt_warn_compat
);
+if (not $result) {
+ exit(1);
+}
+
if ($opt_help) {
ShowHelp();
exit(0);
@@ -764,7 +768,7 @@ $dcom
if (scalar(@ARGV) == 0) {
print "pidl: no input files\n";
- exit(0);
+ exit(1);
}
process_file($_) foreach (@ARGV);