#!perl

our $DATE = '2014-08-27'; # DATE
our $VERSION = '0.01'; # VERSION

use 5.010;
use strict;
use warnings;

use Perinci::CmdLine 1.23;

our %SPEC;
$SPEC{dump_iod} = {
    v => 1.1,
    summary => 'Parse IOD using Config::IOD::Reader and display the result',
    args => {
        iod => {
            summary => 'IOD file',
            schema  => ['str*'],
            req     => 1,
            pos     => 0,
            cmdline_src => 'stdin_or_files',
        },
    },
    result_naked => 1,
};
sub dump_iod {
    my %args = @_;

    state $reader = do {
        require Config::IOD::Reader;
        Config::IOD::Reader->new;
    };

    $reader->read_string($args{iod});
}

Perinci::CmdLine->new(
    url => '/main/dump_iod',
)->run;

# ABSTRACT: Parse IOD using Config::IOD::Reader and display the result
# PODNAME: dump-iod

__END__

=pod

=encoding UTF-8

=head1 NAME

dump-iod - Parse IOD using Config::IOD::Reader and display the result

=head1 VERSION

This document describes version 0.01 of dump-iod (from Perl distribution App-IODUtils), released on 2014-08-27.

=head1 SYNOPSIS

Basic usage:

 % dump-iod /path/to/file.iod

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-IODUtils>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-IODUtils>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-IODUtils>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by perlancar@cpan.org.

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
