#!/usr/bin/env perl

use strict;
use warnings;

use App::ISBN::Check;

our $VERSION = 0.01;

# Run.
exit App::ISBN::Check->new->run;

# Print version.
sub VERSION_MESSAGE {
	print $VERSION."\n";
	exit 0;
}

__END__

=pod

=encoding utf8

=head1 NAME

isbn-check - Tool for ISBN checking.

=head1 SYNOPSIS

 isbn-check [-h] [--version] file_with_isbns

=head1 DESCRIPTION

The tool checks the ISBN written in the file.

=head1 ARGUMENTS

=over 8

=item * C<-h>

Print help.

=item * C<--version>

Print version of script.

=item * C<file_with_isbns>

File with ISBN strings, one per line.

=back

=head1 EXAMPLE

 cat /tmp/foo
 978-80-253-4336-4
 9788025343363
 9788025343364
 978802534336

 isbn-chec /tmp/foo

 # Output:
 # 9788025343363: Different after format (978-80-253-4336-4).
 # 9788025343364: Different after format (978-80-253-4336-4).
 # 978802534336: Cannot parse.

=head1 REPOSITORY

L<https://github.com/michal-josef-spacek/App-ISBN-Check>

=head1 AUTHOR

Michal Josef Špaček L<mailto:skim@cpan.org>

L<http://skim.cz>

=head1 LICENSE AND COPYRIGHT

© 2024 Michal Josef Špaček

BSD 2-Clause License

=head1 VERSION

0.01

=cut
