Moving the true error after the usage, it obscures the true error

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13580 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-08-22 19:13:27 +00:00
parent 6b6b44b04e
commit 564a5df5cb

View File

@ -74,8 +74,8 @@ if (!($tmp =~ / (--help|-h|-v|--version)/)) {
$arg = join(',',@tempnr);
$cmdref->{noderange}->[0]=$arg;
} else {
print "The noderange should be the first argument.\n";
&updatenode_usage();
print "The noderange should be the first argument.\n";
exit 1;
}
}