#!perl

our $DATE = '2014-08-30'; # DATE
our $VERSION = '0.03'; # VERSION

use 5.010;
use strict;
use warnings;

use App::IODUtils;
use Perinci::CmdLine::Any -prefer_lite=>1;

our %SPEC;
$SPEC{dump_iod} = {
    v => 1.1,
    summary => 'Parse IOD using Config::IOD::Reader and display the result',
    args => {
        %App::IODUtils::common_args,
    },
    result_naked => 1,
};
sub dump_iod {
    my %args = @_;

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

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

Perinci::CmdLine::Any->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.03 of dump-iod (from Perl distribution App-IODUtils), released on 2014-08-30.

=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
