App-IndonesianNumberUtils

 view release on metacpan or  search on metacpan

script/parse-nik  view on Meta::CPAN

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

use Perinci::CmdLine::Any;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2024-08-05'; # DATE
our $DIST = 'App-IndonesianNumberUtils'; # DIST
our $VERSION = '0.033'; # VERSION

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/Business/ID/NIK/parse_nik",
    program_name => "parse-nik",
    log => 1,
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: Parse Indonesian citizenship registration number (NIK)
# PODNAME: parse-nik

__END__

=pod

=encoding UTF-8

=head1 NAME

parse-nik - Parse Indonesian citizenship registration number (NIK)

=head1 VERSION

This document describes version 0.033 of parse-nik (from Perl distribution App-IndonesianNumberUtils), released on 2024-08-05.

=head1 SYNOPSIS

B<parse-nik> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<parse-nik> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<parse-nik> [B<L<--check-locality|/"--no-check-locality">>|B<L<--no-check-locality|/"--no-check-locality">>|B<L<--nocheck-locality|/"--no-check-locality">>] [B<L<--check-province|/"--no-check-province">>|B<L<--no-check-province|/"--no-check-province...



See examples in the L</EXAMPLES> section.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--nik>=I<s>*

Input NIK to be validated.

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

=item B<--no-check-locality>

(No description)


=item B<--no-check-province>

(No description)


=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>.


=item B<--quiet>

Shortcut for --log-level=error.

=item B<--trace>

Shortcut for --log-level=trace.

=item B<--verbose>

Shortcut for --log-level=info.

=back

=head2 Output options

=over

=item B<--format>=I<s>

Choose output format, e.g. json, text.



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