Swapped order or -h and -v flag check
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@246 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
52ba612bd7
commit
d93db1f6f5
@ -72,18 +72,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