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:
parent
61990c8743
commit
f176347fbe
@ -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 =~ /^-/)) {
|
||||
|
Loading…
Reference in New Issue
Block a user