App-EANUtils

 view release on metacpan or  search on metacpan

script/check-ean8  view on Meta::CPAN

#!perl

# Note: This script is a CLI for Riap function /App/EANUtils/check_ean8
# and generated automatically using Perinci::CmdLine::Gen version 0.502

use 5.010001;
use strict;
use warnings;
use Log::ger;

use Perinci::CmdLine::Any;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-01-28'; # DATE
our $DIST = 'App-EANUtils'; # DIST
our $VERSION = '0.003'; # VERSION

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/EANUtils/check_ean8",
    program_name => "check-ean8",
    log => 1,
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: Check EAN-8 number(s)
# PODNAME: check-ean8

__END__

=pod

=encoding UTF-8

=head1 NAME

check-ean8 - Check EAN-8 number(s)

=head1 VERSION

This document describes version 0.003 of check-ean8 (from Perl distribution App-EANUtils), released on 2023-01-28.

=head1 SYNOPSIS

B<check-ean8> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<check-ean8> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<check-ean8> [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">>] [(B<L<--ean8-number|/"--ean8-numbers-json=s">>=I<L<ean8_unvalidated|Sah::Schema::ean8_...



See examples in the L</EXAMPLES> section.

=head1 DESCRIPTION

Exit code will be non-zero all numbers are invalid. To check for individual
numbers, use the JSON output.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--ean8-number>=I<s@>*

(No description)


Can also be specified as the 1st command-line argument and onwards.

Can be specified multiple times.

=item B<--ean8-numbers-json>=I<s>

See C<--ean8-number>.

Can also be specified as the 1st command-line argument and onwards.

=item B<--quiet-arg>, B<-q>

If set to true, don't output message to STDOUT.

=back

=head2 Logging options

=over

=item B<--debug>

Shortcut for --log-level=debug.

=item B<--log-level>=I<s>

Set log level.

By default, these log levels are available (in order of increasing level of
importance, from least important to most): C<trace>, C<debug>, C<info>,
C<warn>/C<warning>, C<error>, C<fatal>. By default, the level is usually set to
C<warn>, which means that log statements with level C<info> and less important
levels will not be shown. To increase verbosity, choose C<info>, C<debug>, or
C<trace>.

For more details on log level and logging, as well as how new logging levels can
be defined or existing ones modified, see L<Log::ger>.



( run in 0.499 second using v1.01-cache-2.11-cpan-39bf76dae61 )