Skip to content

Commit

Permalink
add -m to void breaking
Browse files Browse the repository at this point in the history
backwards compatibility
  • Loading branch information
bybai committed Aug 12, 2015
1 parent faf05c6 commit c80a261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xCAT-server/lib/xcat/plugins/bmcdiscover.pm
Expand Up @@ -121,7 +121,7 @@ sub bmcdiscovery_usage {
push @{ $rsp->{data} }, "\tFor example: \n ";
push @{ $rsp->{data} }, "\t1, bmcdiscover -s nmap --range \"10.4.23.100-254 50.3.15.1-2\" \n ";
push @{ $rsp->{data} }, "\t Note : ip_range should be a string, can pass hostnames, IP addresses, networks, etc. \n ";
push @{ $rsp->{data} }, "\t If there is bmc,bmcdiscover returns bmc ip or hostname, or else, it returns null. \n ";
push @{ $rsp->{data} }, "\t If there is bmc,bmcdiscover returns bmc ip, or else, it returns null. \n ";
push @{ $rsp->{data} }, "\t Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254 \n ";
push @{ $rsp->{data} }, "\t2, bmcdiscover -s nmap --range \"10.4.23.100-254 50.3.15.1-2\" -z \n ";
push @{ $rsp->{data} }, "\t3, bmcdiscover -s nmap --range \"10.4.23.100-254 50.3.15.1-2\" -w \n ";
Expand Down Expand Up @@ -164,6 +164,7 @@ sub bmcdiscovery_processargs {
my $getopt_success = Getopt::Long::GetOptions(
'help|h|?' => \$::opt_h,
's=s' => \$::opt_M,
'm=s' => \$::opt_M,
'range=s' => \$::opt_R,
'bmcip|i=s' => \$::opt_I,
'z' => \$::opt_Z,
Expand Down

0 comments on commit c80a261

Please sign in to comment.