Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/scripts/ntp-wait/ntp-wait-opts
# EDIT THIS FILE WITH CAUTION (ntp-wait-opts) | # EDIT THIS FILE WITH CAUTION (ntp-wait-opts) | ||||
# | # | ||||
# It has been AutoGen-ed October 21, 2015 at 12:34:06 PM by AutoGen 5.18.5 | # It has been AutoGen-ed January 7, 2016 at 11:26:33 PM by AutoGen 5.18.5 | ||||
# From the definitions ntp-wait-opts.def | # From the definitions ntp-wait-opts.def | ||||
# and the template file perlopt | # and the template file perlopt | ||||
use Getopt::Long qw(GetOptionsFromArray); | use Getopt::Long qw(GetOptionsFromArray); | ||||
Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always)); | Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always)); | ||||
my $usage; | my $usage; | ||||
Show All 23 Lines | my $opts = { | ||||
'help' => '', 'more-help' => '' | 'help' => '', 'more-help' => '' | ||||
}; | }; | ||||
my $argument = ''; | my $argument = ''; | ||||
my $ret = GetOptionsFromArray($args, $opts, ( | my $ret = GetOptionsFromArray($args, $opts, ( | ||||
'tries|n=i', 'sleep|s=i', 'verbose|v', | 'tries|n=i', 'sleep|s=i', 'verbose|v', | ||||
'help|?', 'more-help')); | 'help|?', 'more-help')); | ||||
$usage = <<'USAGE'; | $usage = <<'USAGE'; | ||||
ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p4 | ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p5 | ||||
USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>] ]... | USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>] ]... | ||||
-n, --tries=num Number of times to check ntpd | -n, --tries=num Number of times to check ntpd | ||||
-s, --sleep=num How long to sleep between tries | -s, --sleep=num How long to sleep between tries | ||||
-v, --verbose Be verbose | -v, --verbose Be verbose | ||||
-?, --help Display usage information and exit | -?, --help Display usage information and exit | ||||
--more-help Pass the extended usage text through a pager | --more-help Pass the extended usage text through a pager | ||||
Show All 11 Lines |