add check for no input to nodestat

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2443 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-10-31 19:17:40 +00:00
parent c5eb054b91
commit bd30724e82

View File

@ -96,9 +96,14 @@ sub preprocess_request
}
else
{ # non node options like -h
my $args=$req->{arg};
@ARGV=();
@ARGV=@{$args};
my $args=$req->{arg};
if ($args) {
@ARGV = @{$args};
} else {
&usage($cb);
return(1);
}
# parse the options
Getopt::Long::Configure("posix_default");
Getopt::Long::Configure("no_gnu_compat");