Fix bug 3090341: rvitals -v prints help information

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8084 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2010-11-07 06:33:53 +00:00
parent 15bc16f43e
commit 2c47443a17

View File

@ -56,7 +56,7 @@ sub preprocess_request {
if (ref($extrargs)) {
@exargs=@$extrargs;
}
if (($#exargs==-1) or (($#exargs==0) and ($exargs[0] =~ /^\s*$/)) or (!$noderange and $command ne "lsslp")) {
if (($#exargs==-1) or (($#exargs==0) and ($exargs[0] =~ /^\s*$/)) and (!$noderange and $command ne "lsslp")) {
$exargs[0] = "--help"; # force help if no args
}