From 1e744a5108f47a06f1587aed047ad536bd5af4f4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 23 Sep 2005 13:06:23 +0000 Subject: [PATCH] r10450: Use exit code 1 in case of fatal errors (This used to be commit 88ece24a4400cabef95fd1eb4ca14b7df085b529) --- source4/pidl/pidl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source4/pidl/pidl b/source4/pidl/pidl index 57105b4472d..dc856302417 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); -- 2.34.1