App-calendr
view release on metacpan or search on metacpan
lib/App/calendr.pm view on Meta::CPAN
package App::calendr;
$App::calendr::VERSION = '0.26';
$App::calendr::AUTHORITY = 'cpan:MANWAR';
=head1 NAME
App::calendr - Application to display supported Calendar.
=head1 VERSION
Version 0.26
=cut
use 5.006;
use Data::Dumper;
use App::calendr::Option;
use Module::Pluggable
search_path => [ 'Calendar' ],
require => 1,
inner => 0,
max_depth => 2;
use Moo;
use namespace::autoclean;
our $DEFAULT_CALENDAR = 'Gregorian';
our $FAILED_CALENDARS = {};
use Types::Standard -all;
use MooX::Options;
with 'App::calendr::Option';
=head1 DESCRIPTION
It provides simple command line interface to the package L<App::calendr>. The
distribution contains a script C<calendr>, using package L<App::calendr>.
=head1 SYNOPSIS
You can list all command line options by giving C<--help> flag.The C<--name> flag
is only mandatory. Rest of all are optionals. If C<--month> flag is passed then
the C<--year> flag becomes mandatory and vice versa. In case neither of them is
passed in then it would look for C<--gdate>/C<--jday> flag and accordingly act on
it. In case none C<flag> passed in it would show the current calendar month.
$ calendr --help
USAGE: calendr [-h] [long options...]
--name: String
Calendar name e.g. Bahai,Gregorian,Hebrew,Hijri,Julian,Persian,Saka.
Default is Gregorian.
--month: String
Month number/name e.g. 1,2,3... or January,February...
--year: Int
Year number (3/4 digits)
--gdate: String
Gregorian date (YYYY-MM-DD)
--jday: Int
Julian day
--as_svg:
Generate calendar in SVG format
--list_month_names:
List calendar month names
--usage:
show a short help message
-h:
show a compact help message
--help:
show a long help message
--man:
show the manual
( run in 1.294 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )