rscan usage error - Line #712

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1214 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-04-28 14:13:19 +00:00
parent db91ec3a80
commit b029723c23

View File

@ -709,7 +709,7 @@ sub rscan {
if ( !GetOptions(\%opt,qw(V|Verbose w x z))){
return(1,usage());
}
if (@ARGV) {
if ( defined(@ARGV[0]) ) {
return(1,usage("Invalid argument: @ARGV\n"));
}
if (exists($opt{x}) and exists($opt{z})) {