diff --git a/justfile b/justfile index f6b0a6e..7c56dab 100644 --- a/justfile +++ b/justfile @@ -118,7 +118,9 @@ example: # The release pre-flight, in one command: the branch, a clean tree, a sync with origin, the gates, and a CHANGELOG section ready to release. Not a gate, it is the checklist before a release may even be discussed. release-check version: #!/usr/bin/env perl - my ($version) = @ARGV; + # The version arrives through the recipe interpolation: just does not hand + # positional arguments to a shebang script's @ARGV. + my $version = q{ {{version}} }; $version =~ m{\Av?\d+\.\d+\.\d+\z} or die qq{usage: just release-check X.Y.Z\n}; my $branch = qx{git rev-parse --abbrev-ref HEAD}; chomp $branch;