diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index ab4f52bd7..f913b0dc8 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -393,7 +393,14 @@ sub process_request $callback->({data => ["Usage: makedhcp <-n> "]}); 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 [-s statements]\n\tmakedhcp [-h|--help]"; + $callback->({data => [$usage]}); + return; + } + + if (grep /^-n$/, @{$req->{arg}}) { if (-e "/etc/dhcpd.conf") {