diff options
author | Slack Coder <slackcoder@server.ky> | 2025-02-20 13:19:41 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2025-02-20 14:44:17 -0500 |
commit | 6562db4c47319f40ec0d045c725f9766a56e7e5a (patch) | |
tree | 65bb4dbcfc6cc99542a3a65faeb7b97d0899fe2b /sboupgrade | |
parent | 857080314ce717ce18c12106947456e7e12958b9 (diff) | |
download | sbotools2-6562db4c47319f40ec0d045c725f9766a56e7e5a.tar.xz |
Bail out on bad arguments
Diffstat (limited to 'sboupgrade')
-rwxr-xr-x | sboupgrade | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -55,7 +55,7 @@ my $distclean = $config{DISTCLEAN}; my $jobs = $config{JOBS}; my ($help, $vers, $force, $no_install, $non_int, $force_reqs, $all); -GetOptions( +if (! GetOptions( 'help|h' => \$help, 'version|v' => \$vers, 'noclean|c=s' => \$noclean, @@ -66,7 +66,10 @@ GetOptions( 'nointeractive|r' => \$non_int, 'force-reqs|z' => \$force_reqs, 'all' => \$all, -); +)) { + show_usage(); + exit 1; +} if ($help) { show_usage(); exit 0 } if ($vers) { show_version(); exit 0 } |