1 # EDIT THIS FILE WITH CAUTION (update-leap-opts)
3 # It has been AutoGen-ed June 2, 2016 at 07:25:39 AM by AutoGen 5.18.5
4 # From the definitions update-leap-opts.def
5 # and the template file perlopt
7 use Getopt::Long qw(GetOptionsFromArray);
8 Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always));
20 my $pager = $ENV{PAGER} || '(less || more)';
22 open STDOUT, "| $pager" or die "Can't fork a pager: $!";
36 'ntp-conf-file' => '',
39 'help' => '', 'more-help' => ''
42 my $ret = GetOptionsFromArray($args, $opts, (
43 'source-url|s=s', 'ipv4|4', 'destination|d=f',
44 'expiration|e=s', 'ntp-conf-file|f=s', 'force-update|F',
46 'help|?', 'more-help'));
49 update-leap - leap-seconds file manager/updater - Ver. 4.2.8p8
50 USAGE: update-leap [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
52 -s, --source-url=str The URL of the master copy of the leapseconds file
53 -4, --ipv4 Use only IPv4 addresses for DNS name resolution
54 -d, --destination=float Filename on the local system
55 -e, --expiration=str Refresh the leapfile this long before it expires
56 -f, --ntp-conf-file=str Location of the ntp.conf file
57 -F, --force-update Force update of the leapfile
58 --dont-wait Don't wait for keystroke between plots
59 -?, --help Display usage information and exit
60 --more-help Pass the extended usage text through a pager
62 Options are specified by doubled hyphens and their name or by a single
63 hyphen and the flag character.
66 usage(0) if $opts->{'help'};
67 paged_usage(0) if $opts->{'more-help'};