| 1 | #!/usr/local/bin/perl | ||
| 2 | |||
| 3 | package Bin::build_selenium_spec; | ||
| 4 | $Bin::build_selenium_spec::VERSION = '2.01'; | ||
| 5 | #ABSTRACT: Convenience script to fetch the selenium specification from WC3 | ||
| 6 | |||
| 7 | use strict; | ||
| 8 | use warnings; | ||
| 9 | |||
| 10 | use v5.28; | ||
| 11 | |||
| 12 | no warnings 'experimental'; | ||
| 13 | use feature qw/signatures/; | ||
| 14 | |||
| 15 | use Getopt::Long qw{GetOptionsFromArray}; | ||
| 16 | use Pod::Usage; | ||
| 17 | |||
| 18 | use Selenium::Specification; | ||
| 19 | |||
| 20 | exit main(@ARGV) unless caller; | ||
| 21 | |||
| 22 | sub main(@args) { | ||
| 23 | my %options; | ||
| 24 | GetOptionsFromArray(\@args, | ||
| 25 | 'verbose' => \$options{verbose}, | ||
| 26 | 'dir=s' => \$options{dir}, | ||
| 27 | 'force' => \$options{force}, | ||
| 28 | 'help' => \$options{help}, | ||
| 29 | ); | ||
| 30 | return pod2usage(verbose => 2, noperldoc => 1) if $options{help}; | ||
| 31 | Selenium::Specification::fetch(%options); | ||
| 32 | } | ||
| 33 | |||
| 34 | 1; | ||
| 35 | |||
| 36 | __END__ |