From: Graham Knop Date: Tue, 27 Sep 2016 01:16:25 +0000 (-0400) Subject: die with missing old version X-Git-Tag: v0.003000~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eb3aeb36f8f5c565e3000d04f32d43c1cb8fbd15;p=p5sagit%2FDistar.git die with missing old version --- diff --git a/helpers/bump-version b/helpers/bump-version index 0c935cf..5373656 100755 --- a/helpers/bump-version +++ b/helpers/bump-version @@ -11,7 +11,9 @@ GetOptions( "force" => \my $force, ) or die("Error in command line arguments\n"); -my ($old_version, $bump) = @ARGV; +my $old_version = shift + or die "no old version provided!\n"; +my $bump = shift; my ($new_decimal, $new_vstring) = bump_version($old_version, $bump); warn "Bumping $old_version -> $new_decimal\n";