From f43e891300f12f2cf1463796b4df297b34fe6df7 Mon Sep 17 00:00:00 2001 From: sjing Date: Fri, 23 Jul 2010 09:09:38 +0000 Subject: [PATCH] bug id ID: 3033398 - several commands do not support long options such as --force use getopt instead of getopts to let long options pass through git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6835 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xcatDBcmds | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-client/bin/xcatDBcmds b/xCAT-client/bin/xcatDBcmds index cf49c6556..c99d07fc4 100755 --- a/xCAT-client/bin/xcatDBcmds +++ b/xCAT-client/bin/xcatDBcmds @@ -99,7 +99,8 @@ foreach my $a (@ARGV) my @checkcmds = ("nimnodeset", "mkdsklsnode", "rmdsklsnode", "xcat2nim", "nimnodecust"); if (grep(/^$bname$/, @checkcmds) ) { # strip off all options - getopts('ab:d:Dfh?i:lurs:m:no:t:vVp:M'); + # use getopt instead of getopts to let long options pass through + getopt('ab:d:Dfh?i:lurs:m:no:t:vVp:M'); # check the operands for a noderange while (my $a = shift(@ARGV)) { if (!($a =~ /=/) && !($a =~ /^-/)) {