bug 2151149 ; makedhcp -h;There isn't any output information. I have fixed it.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2778 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2009-02-19 10:00:28 +00:00
parent 77ed4d7958
commit c85652a6e2

View File

@ -393,7 +393,14 @@ sub process_request
$callback->({data => ["Usage: makedhcp <-n> <noderange>"]});
return;
}
if (grep /^-n$/, @{$req->{arg}})
if(grep /-h/,@{$req->{arg}}) {
my $usage="Usage: makedhcp -n\n\tmakedhcp -a\n\tmakedhcp -a -d\n\tmakedhcp -d noderange\n\tmakedhcp <noderange> [-s statements]\n\tmakedhcp [-h|--help]";
$callback->({data => [$usage]});
return;
}
if (grep /^-n$/, @{$req->{arg}})
{
if (-e "/etc/dhcpd.conf")
{