diff options
Diffstat (limited to 'sboinstall')
-rwxr-xr-x | sboinstall | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -61,7 +61,7 @@ my $distclean = $config{DISTCLEAN}; my $jobs = $config{JOBS}; my ($help, $vers, $no_install, $non_int, $no_reqs, $compat32, $ctemp, $utemp, $reinstall); -GetOptions( +if (! GetOptions( 'help|h' => \$help, 'version|v' => \$vers, 'noclean|c=s' => \$noclean, @@ -74,7 +74,10 @@ GetOptions( 'reinstall' => \$reinstall, 'create-template=s' => \$ctemp, 'use-template=s' => \$utemp, -); +)) { + show_usage(); + exit 1; +} if ($help) { show_usage(); exit 0 } if ($vers) { show_version(); exit 0 } |