Swapped order of -h and -v flag check - Line #51
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@247 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d93db1f6f5
commit
25ad0324a8
@ -49,18 +49,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