Permalink
Browse files

Tidy up versioning a little.

  • Loading branch information...
1 parent 88f3ff0 commit 5459bf2340375875291e5ad6c4bdd54dcb438f1a @pjcj committed May 23, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 bin/cover
  2. +2 −1 bin/cpancover
View
@@ -185,7 +185,8 @@ sub main
push @{$Options->{annotations}}, $ann;
}
- print "$0 version ".__PACKAGE__->VERSION."\n" and exit 0 if $Options->{version};
+ print "$0 version " . __PACKAGE__->VERSION . "\n" and exit 0
+ if $Options->{version};
pod2usage(-exitval => 0, -verbose => 1) if $Options->{help};
pod2usage(-exitval => 0, -verbose => 2) if $Options->{info};
View
@@ -55,7 +55,8 @@ sub get_options
version|v!
));
- print "$0 version $VERSION\n" and exit 0 if $Options->{version};
+ print "$0 version " . __PACKAGE__->VERSION . "\n" and exit 0
+ if $Options->{version};
pod2usage(-exitval => 0, -verbose => 0) if $Options->{help};
pod2usage(-exitval => 0, -verbose => 2) if $Options->{info};

0 comments on commit 5459bf2

Please sign in to comment.