Modify getopts call.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5062 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2010-01-27 15:06:04 +00:00
parent 61990c8743
commit f176347fbe

View File

@ -99,7 +99,7 @@ foreach my $a (@ARGV)
my @checkcmds = ("nimnodeset", "mkdsklsnode", "rmdsklsnode", "xcat2nim", "nimnodecust");
if (grep(/^$bname$/, @checkcmds) ) {
# strip off all options
getopts('ab:d:fh?i:l:urs:m:no:t:vVp:');
getopts('ab:d:fh?i:lurs:m:no:t:vVp:M');
# check the operands for a noderange
while (my $a = shift(@ARGV)) {
if (!($a =~ /=/) && !($a =~ /^-/)) {