diff options
Diffstat (limited to 'bin/h5vers')
-rwxr-xr-x | bin/h5vers | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; }; |