From bde3e92d14d079a59f71830e505da4a09425bd92 Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 1 Feb 2010 16:51:43 +0000 Subject: [PATCH] minor fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodestat.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index d01d5766e..a80779081 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -109,13 +109,14 @@ sub preprocess_request $::UPDATE=0; $::QUITE=0; $::MON=0; - Getopt::Long::Configure("posix_default"); - Getopt::Long::Configure("no_gnu_compat"); + #Getopt::Long::Configure("posix_default"); + #Getopt::Long::Configure("no_gnu_compat"); Getopt::Long::Configure("bundling"); + $Getopt::Long::ignorecase=0; if (!GetOptions( 'm|usemon' => \$::MON, 'q|quite' => \$::QUITE, #this is a internal flag used by monitoring - 'u|update' => \$::UPDATE, + 'u|updatedb' => \$::UPDATE, 'h|help' => \$::HELP, 'v|version' => \$::VERSION)) { @@ -865,7 +866,7 @@ sub usage my $cb=shift; my $rsp={}; $rsp->{data}->[0]= "Usage:"; - $rsp->{data}->[1]= " nodestat [noderange] [-m|--usemon] [-u|update]"; + $rsp->{data}->[1]= " nodestat [noderange] [-m|--usemon] [-u|--updatedb]"; $rsp->{data}->[2]= " nodestat [-h|--help|-v|--version]"; xCAT::MsgUtils->message("I", $rsp, $cb); }