From 7a1921d76c5c7e0ae7114f2f2fa66094204f9c5b Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 18 Sep 2019 23:17:07 +0200 Subject: [PATCH] TODO: header option --- barcat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/barcat b/barcat index 7da2259..05b7cb1 100755 --- a/barcat +++ b/barcat @@ -42,6 +42,7 @@ GetOptions(\%opt, " (range expected)\n" ); }, + 'header!', 'markers|m=s', 'graph-format=s' => sub { $opt{'graph-format'} = substr $_[1], 0, 1; @@ -192,6 +193,8 @@ sub sival { ); } +say sprintf ' %*s-+%*s-+', $len, $minval, $size * ($maxval - $minval) - 3, $maxval if $opt{header}; + while ($nr <= $#lines) { $nr >= $opt{hidemax} and last if defined $opt{hidemax}; my $val = $values[$nr]; -- 2.30.0