defect 3324536: fix the issue updatenode cannot handle the node with -h inside

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2011-06-23 05:59:23 +00:00
parent 0c1c053f85
commit 4234c63ce2

View File

@ -36,8 +36,8 @@ Getopt::Long::Configure("bundling");
# 'v|version' => \$::VERSION);
# display the usage if -h or --help is specified
my $tmp=join(' ', @ARGV);
if (!($tmp =~ /--help|-h$|-v$|--version/)) {
my $tmp=" ".join(' ', @ARGV);
if (!($tmp =~ / (--help|-h|-v|--version)/)) {
my $arg=shift(@ARGV);
# Set the noderange
if ($arg !~ /^-/) {