git.shiar.nl
/
barcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
override version option to only show main program
[barcat.git]
/
barcat
diff --git
a/barcat
b/barcat
index 1bcda801779e9a4028b07f5005b5217b5d5120e8..db0aefa23fb370051399b502954972f388f39281 100755
(executable)
--- 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 );
use open qw( :std :utf8 );
use experimental qw( lexical_subs );
-our $VERSION = '1.0
5
';
+our $VERSION = '1.0
6
';
use Getopt::Long '2.33', qw( :config gnu_getopt );
my %opt;
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',
'signal-stat=s',
'unmodified|u!',
'width|w=i',
+ 'version' => sub {
+ say "barcat version $VERSION";
+ exit;
+ },
'usage|h' => sub {
local $/;
my $pod = readline *DATA;
'usage|h' => sub {
local $/;
my $pod = readline *DATA;