App-pretty

 view release on metacpan or  search on metacpan

bin/pretty  view on Meta::CPAN

    my $res = GetOptions(
        'input|i=s'  => \$Opts{input},
        'output|o=s' => \$Opts{output},
        'version|v'  => sub {
            say "pretty version ", ($main::VERSION // '?');
            exit 0;
        },
        'help|h'     => sub {
            print <<USAGE;
Usage:
  pretty [OPTIONS] < INPUT
  pretty --version
  pretty --help
Examples:
  pretty -o YAML data.json
Options:
  --input=s, -i   Input format (json, yaml, perl; default is json).
  --output=s, -o  Output format (json, yaml, perl, or any formatter module name;
                  default is Console).
Consult manpage/documentation for more details.
USAGE

bin/pretty  view on Meta::CPAN

pretty - Format data structure prettily

=head1 VERSION

This document describes version 0.05 of pretty (from Perl distribution App-pretty), released on 2016-03-10.

=head1 SYNOPSIS

Usage:

 % pretty [OPTIONS] < INPUT

Examples:

 % echo '[1..5]' | pretty -i perl
 .----.
 |  1 |
 |  2 |
 |  3 |
 |  4 |
 |  5 |



( run in 0.458 second using v1.01-cache-2.11-cpan-4e96b696675 )