override version option to only show main program
[barcat.git] / barcat
diff --git a/barcat b/barcat
index 36461a17d7a53c7d0d71f631ef5bd1af180efbbd..7da22597daea388d539e81b883f56de60bfac278 100755 (executable)
--- a/barcat
+++ b/barcat
@@ -53,6 +53,10 @@ GetOptions(\%opt,
        'signal-stat=s',
        'unmodified|u!',
        'width|w=i',
+       'version' => sub {
+               say "barcat version $VERSION";
+               exit;
+       },
        'usage|h' => sub {
                local $/;
                my $pod = readline *DATA;