2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-02 01:27:36 +00:00

Handle invalid options for makentp command

This commit is contained in:
Casandra Qiu
2016-11-02 16:55:05 -04:00
parent 15eeb3b2d5
commit c619538333

View File

@@ -110,6 +110,7 @@ sub parse_args {
# Responds with usage statement
local *usage = sub {
my $usage_string = xCAT::Usage->getUsage($cmd);
send_msg($request, 0, " $usage_string");
return ([ $_[0], $usage_string ]);
};
@@ -124,6 +125,7 @@ sub parse_args {
@ARGV = @$args;
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure("bundling");
Getopt::Long::Configure("no_pass_through");
# Process command-line flags
if (!GetOptions(\%opt,
@@ -288,7 +290,7 @@ sub process_request {
}
if ($verbose) {
send_msg(\%request, 0, " ...changing the ntpp configuration file /etc/ntp.conf.\n ntp servers are: $ntp_servers");
send_msg(\%request, 0, " ...changing the ntp configuration file /etc/ntp.conf.\n ntp servers are: $ntp_servers");
}
# create ntp server config file