From fed0c20efd7d95f3fdbd13122d414c32526dc59c Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 5 Mar 2013 05:29:49 +0000 Subject: [PATCH] support -i for pping and ppping git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15381 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/pping | 5 ++++- xCAT-client/bin/ppping | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/pping b/xCAT-client/bin/pping index 03ba8b7ef..49b383069 100755 --- a/xCAT-client/bin/pping +++ b/xCAT-client/bin/pping @@ -28,12 +28,15 @@ my $USAGE="Usage: pping [-i|--interface interfaces] noderange pping -v|--version\n"; my $interface; +# Parse the options +require Getopt::Long; +Getopt::Long::Configure ("bundling"); if(!GetOptions( 'f|use_fping' => \$::USE_FPING, 'h|help' => \$::HELP, 'v|version' => \$::VERSION, 'X|noexpand' => \$::NOEXPAND, - 'interface=s' => \$interface)) + 'i|interface=s' => \$interface)) { print "$USAGE"; exit 1; diff --git a/xCAT-client/bin/ppping b/xCAT-client/bin/ppping index 615fd4313..1dcad30ad 100755 --- a/xCAT-client/bin/ppping +++ b/xCAT-client/bin/ppping @@ -45,7 +45,7 @@ if(!GetOptions( 'V|verbose' => \$::VERBOSE, 'H|hierarchical' => \$::HIERARCHY, 'q|quiet' => \$::QUIET, - 'interface=s' => \$interface)) + 'i|interface=s' => \$interface)) { print "$USAGE"; exit 1;