#!/usr/bin/perl
use strict;
use warnings;

package App::Addex::addex;


our $VERSION = '0.023';


use App::Addex;
use Config::MVP::Assembler;
use Config::MVP::Reader::INI;
use File::HomeDir;
use File::Spec;
use Getopt::Long::Descriptive;

my ($opt, $usage) = describe_options(
  '%c %o',
  [ 'config|c=s',     'config file name',
    { default => File::Spec->catfile(File::HomeDir->my_home, '.addex') }   ],
);

my $assembler = Config::MVP::Assembler->new;
$assembler->change_section('App::Addex', 'classes');

my $seq = Config::MVP::Reader::INI->read_config(
  $opt->{config},
  { assembler => $assembler }
);

my $addex = App::Addex->from_sequence($seq);

$addex->run;

__END__

=pod

=head1 NAME

App::Addex::addex

=head1 VERSION

version 0.024

=head1 DESCRIPTION

The F<addex> command produces configuration for various email tools based on
your address book.  For more information, consult L<App::Addex>.

=head1 NAME

addex - create mail helper files for address book entries

=head1 VERSION

version 0.023

=head1 AUTHOR

Ricardo SIGNES, C<< <rjbs@cpan.org> >>

=head1 BUGS

Please report any bugs or feature requests through the web interface at
L<http://rt.cpan.org>.  I will be notified, and then you'll automatically be
notified of progress on your bug as I make changes.

=head1 COPYRIGHT

Copyright 2006-2007 Ricardo Signes, all rights reserved.

This program is free software; you may redistribute it and/or modify it
under the same terms as Perl itself.

=head1 AUTHOR

Ricardo SIGNES <rjbs@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2006 by Ricardo SIGNES.

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

=cut
