From db8895d25c99520c952eaa2f06fd464274929806 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 3 Oct 2019 22:47:23 +0200 Subject: [PATCH] limit without arguments for all (statistics only) --- barcat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/barcat b/barcat index 8e23b07..9cfe3e3 100755 --- a/barcat +++ b/barcat @@ -35,7 +35,7 @@ GetOptions(\%opt, 'hidemax=i', 'minval=f', 'maxval=f', - 'limit|L=s' => sub { + 'limit|L:s' => sub { my ($optname, $optval) = @_; $optval ||= 0; ($opt{hidemin}, $opt{hidemax}) = @@ -367,7 +367,7 @@ unless C<--length=0>. Prepend a dash (i.e. make negative) to enforce padding regardless of encountered contents. -=item -L, --limit=(|-[]) +=item -L, --limit[=( | -[])] Stop output after a number of lines. All input is still counted and analyzed for statistics, -- 2.30.0