X-Git-Url: http://git.shiar.nl/barcat.git/blobdiff_plain/d91b9999c3add998accda17038ce123d0d5a73c1..43511a9c8cfbb436926aec1c4382003cdab87ee5:/barcat diff --git a/barcat b/barcat index a7c67ee..db0aefa 100755 --- a/barcat +++ b/barcat @@ -6,7 +6,7 @@ use List::Util qw( min max sum ); use open qw( :std :utf8 ); use experimental qw( lexical_subs ); -our $VERSION = '1.05'; +our $VERSION = '1.06'; use Getopt::Long '2.33', qw( :config gnu_getopt ); my %opt; @@ -53,6 +53,10 @@ GetOptions(\%opt, 'signal-stat=s', 'unmodified|u!', 'width|w=i', + 'version' => sub { + say "barcat version $VERSION"; + exit; + }, 'usage|h' => sub { local $/; my $pod = readline *DATA; @@ -356,10 +360,17 @@ or 68% of all entries. =back -=item --spark +=item --spark[=] Replace lines by I, single characters corresponding to input values. +A specified sequence of unicode characters will be used for +Of a specified sequence of unicode characters, +the first one will be used for non-values, +the last one for the maximum, +the second (if any) for the minimum, +and any remaining will be distributed over the range of values. +Unspecified, block fill glyphs U+2581-2588 will be used. =item -s, --stat