From: Mischa POSLAWSKY Date: Thu, 3 Oct 2019 20:47:23 +0000 (+0200) Subject: limit without arguments for all (statistics only) X-Git-Tag: v1.07~28 X-Git-Url: http://git.shiar.nl/barcat.git/commitdiff_plain/db8895d25c99520c952eaa2f06fd464274929806?ds=sidebyside limit without arguments for all (statistics only) --- 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,