| 1 | #!/usr/bin/perl |
| 2 | use 5.014000; |
| 3 | use strict; |
| 4 | use warnings; |
| 5 | |
| 6 | use App::NAOdash; |
| 7 | |
| 8 | App::NAOdash::run(@ARGV); |
| 9 | |
| 10 | __END__ |
| 11 | |
| 12 | =encoding utf-8 |
| 13 | |
| 14 | =head1 NAME |
| 15 | |
| 16 | naodash - Analyze NetHack xlogfiles and extract statistics (command-line interface) |
| 17 | |
| 18 | =head1 SYNOPSIS |
| 19 | |
| 20 | naodash mgv # Show statistics for the mgv user on NAO |
| 21 | naodash /path/to/xlogfile # Show statistics for a given xlogfile |
| 22 | |
| 23 | =head1 DESCRIPTION |
| 24 | |
| 25 | naodash is a command-line interface to L<NetHack::NAOdash>. It takes a |
| 26 | NAO username or a path to an xlogfile, analyzes it, and prints the |
| 27 | results of the analysis. A terminal with ANSI escape code support is |
| 28 | required. Do not parse this command's output. For computer-readable |
| 29 | output, please use the L<NetHack::NAOdash> library directly. |
| 30 | |
| 31 | =head1 ENVIRONMENT |
| 32 | |
| 33 | =over |
| 34 | |
| 35 | =item NAODASH_CACHE |
| 36 | |
| 37 | Path to a directory that should be used to cache xlogfiles downloaded |
| 38 | from NAO, or the special value 'none' (case-insensitive) to disable |
| 39 | caching. |
| 40 | |
| 41 | By default a directory named 'naodash' in the default temporary |
| 42 | directory (C<< File::Spec->tmpdir >>) is used. |
| 43 | |
| 44 | =back |
| 45 | |
| 46 | =head1 SEE ALSO |
| 47 | |
| 48 | L<NetHack::NAOdash>, L<http://alt.org/nethack/>, L<App::NAOdash>, L<App::Web::NAOdash> |
| 49 | |
| 50 | =head1 AUTHOR |
| 51 | |
| 52 | Marius Gavrilescu, E<lt>marius@ieval.roE<gt> |
| 53 | |
| 54 | =head1 COPYRIGHT AND LICENSE |
| 55 | |
| 56 | Copyright (C) 2015 by Marius Gavrilescu |
| 57 | |
| 58 | This library is free software; you can redistribute it and/or modify |
| 59 | it under the same terms as Perl itself, either Perl version 5.20.2 or, |
| 60 | at your option, any later version of Perl 5 you may have available. |
| 61 | |
| 62 | |
| 63 | =cut |