Swapped order of -h and -v flag check - Line #50
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@248 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
25ad0324a8
commit
ca89329166
@ -48,18 +48,18 @@ sub parse_args {
|
||||
return( usage() );
|
||||
}
|
||||
####################################
|
||||
# Option -v for version
|
||||
####################################
|
||||
if ( exists( $opt{v} )) {
|
||||
return( \@VERSION );
|
||||
}
|
||||
####################################
|
||||
# Option -h for Help
|
||||
####################################
|
||||
if ( exists( $opt{h} )) {
|
||||
return( usage() );
|
||||
}
|
||||
####################################
|
||||
# Option -v for version
|
||||
####################################
|
||||
if ( exists( $opt{v} )) {
|
||||
return( \@VERSION );
|
||||
}
|
||||
####################################
|
||||
# Check for "-" with no option
|
||||
####################################
|
||||
if ( grep(/^-$/, @ARGV )) {
|
||||
|
Loading…
Reference in New Issue
Block a user