X-Git-Url: http://git.shiar.nl/barcat.git/blobdiff_plain/24559734dc4c9e6328c42fc5c33c79dde1f0e298..5a425b94d943da2ed750a875487d877e1a728d54:/barcat diff --git a/barcat b/barcat index a443942..cdb41da 100755 --- a/barcat +++ b/barcat @@ -9,10 +9,6 @@ use experimental qw( lexical_subs ); our $VERSION = '1.05'; use Getopt::Long '2.33', qw( :config gnu_getopt ); -sub podexit { - require Pod::Usage; - Pod::Usage::pod2usage(-exitval => 0, -perldocopt => '-oman', @_); -} my %opt; GetOptions(\%opt, 'color|c!', @@ -69,7 +65,12 @@ GetOptions(\%opt, print $contents; exit; }, - 'help' => sub { podexit(-verbose => 2) }, + 'help|?' => sub { + require Pod::Usage; + Pod::Usage::pod2usage( + -exitval => 0, -perldocopt => '-oman', -verbose => 2, + ); + }, ) or exit 64; # EX_USAGE $opt{width} ||= $ENV{COLUMNS} || 80; @@ -244,6 +245,12 @@ Visualizes relative sizes of values read from input (file(s) or STDIN). Contents are concatenated similar to I, but numbers are reformatted and a bar graph is appended to each line. +Don't worry, barcat does not drink and divide. +It can has various options for input and output (re)formatting, +but remains limited to one-dimensional charts. +For more complex graphing needs +you'll need a larger animal like I. + =head1 OPTIONS =over @@ -344,6 +351,19 @@ Reserved space for numbers. Override the maximum number of columns to use. Appended graphics will extend to fill up the entire screen. +=item -h, --usage + +Overview of available options. + +=item --help + +Full documentation +rendered by perldoc. + +=item --version + +Version information. + =back =head1 EXAMPLES