]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Die when error in command line arguments is detected
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 7 Jan 2014 15:05:41 +0000 (16:05 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 7 Jan 2014 15:05:41 +0000 (16:05 +0100)
novaboot

index 361b1e0846d54707331fb05a005cccaeacdd45b5..477a5c9ad2907bebf0949d29fe75f3800c882e84 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -160,7 +160,7 @@ my %opt_spec;
 
 # Then process other command line options - some of them may override
 # what was specified by the target
-GetOptions %opt_spec;
+GetOptions %opt_spec or die("Error in command line arguments");
 pod2usage(1) if $help;
 pod2usage(-exitstatus => 0, -verbose => 2) if $man;