summaryrefslogtreecommitdiffstats
path: root/bin/h5vers
diff options
context:
space:
mode:
Diffstat (limited to 'bin/h5vers')
-rwxr-xr-xbin/h5vers7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/h5vers b/bin/h5vers
index a4ddefc..418c994 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -66,8 +66,11 @@ while ($_ = shift) {
};
$_ eq "-i" && do {
- die "-i switch needs a value\n" unless @ARGV;
- $inc = shift;
+ if (@ARGV && $ARGV[1]=~/^(major|minor|release)$/) {
+ $inc = shift;
+ } else {
+ $inc = "release";
+ }
next;
};