mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-15 19:01:44 +00:00
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
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user