diff --git a/perl-xCAT/xCAT/FSPbootseq.pm b/perl-xCAT/xCAT/FSPbootseq.pm index 37a6be106..7b2346508 100644 --- a/perl-xCAT/xCAT/FSPbootseq.pm +++ b/perl-xCAT/xCAT/FSPbootseq.pm @@ -81,11 +81,11 @@ sub parse_args { } if( $ARGV[0] =~/^hfi$/) { - $opt{hfi} = 1; - } - - if( $ARGV[0] =~/^net$/) { - $opt{net} = 1; + $opt{hfi} = 1; + } elsif ( $ARGV[0] =~/^net$/) { + $opt{net} = 1; + } else { + return(usage( "Invalid Argument: $ARGV[0]" )); } shift @ARGV;