#!perl

use 5.010;
use strict;
use warnings;

use Getopt::Long qw(:config bundling no_ignore_case auto_help auto_version);
use Test::Regexp::Pattern;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2022-07-24'; # DATE
our $DIST = 'Test-Regexp-Pattern'; # DIST
our $VERSION = '0.010'; # VERSION

my %opts = (
    #exclude_packages => [],
    test_examples => 1,
);
GetOptions(
    #'exclude-package=s' => $opts{exclude_packages},
    #'exclude-function=s' => $opts{exclude_functions},
    'E' => sub { $opts{test_examples} = 0 },
);

regexp_patterns_in_all_modules_ok(
    \%opts,
);

1;
# ABSTRACT: Test Regexp::Pattern patterns in all modules of your distro
# PODNAME: test-regexp-pattern

__END__

=pod

=encoding UTF-8

=head1 NAME

test-regexp-pattern - Test Regexp::Pattern patterns in all modules of your distro

=head1 VERSION

This document describes version 0.010 of test-regexp-pattern (from Perl distribution Test-Regexp-Pattern), released on 2022-07-24.

=head1 SYNOPSIS

In your distro directory:

 % test-regexp-pattern [options]

=head1 DESCRIPTION

This script is a command-line interface for L<Test::Regexp::Pattern>'s
C<regexp_patterns_in_all_modules_ok()> function.

=head1 OPTIONS

=over

=item * -E

This sets C<test_examples> to 0.

=back

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/Test-Regexp-Pattern>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-Test-Regexp-Pattern>.

=head1 SEE ALSO

L<Test::Regexp::Pattern>

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 CONTRIBUTING


To contribute, you can send patches by email/via RT, or send pull requests on
GitHub.

Most of the time, you don't need to build the distribution yourself. You can
simply modify the code, then test via:

 % prove -l

If you want to build the distribution (e.g. to try to install it locally on your
system), you can install L<Dist::Zilla>,
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required
beyond that are considered a bug and can be reported to me.

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2022, 2020, 2018 by perlancar <perlancar@cpan.org>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Regexp-Pattern>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=cut