limit without arguments for all (statistics only)
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 3 Oct 2019 20:47:23 +0000 (22:47 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 4 Oct 2019 02:38:14 +0000 (04:38 +0200)
barcat

diff --git a/barcat b/barcat
index 8e23b074d486377182938b168a3f5605feab0814..9cfe3e3df3330b69a2f762372e76ee2af606db54 100755 (executable)
--- 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=(<count>|<start>-[<end>])
+=item -L, --limit[=(<count> | <start>-[<end>])]
 
 Stop output after a number of lines.
 All input is still counted and analyzed for statistics,