Skip Menu |

This queue is for tickets about the Getopt-Euclid CPAN distribution.

Report information
The Basics
Id: 23383
Status: resolved
Priority: 0/
Queue: Getopt-Euclid

People
Owner: Nobody in particular
Requestors: toddr [...] cpanel.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: VERSION should extract from use version
I love the concept of Euclid keeping everything in one place. It would be great if this were extended to have --version either derived it's info from: use version; our $VERSION = q{2.4}; OR $ARGV{"--version") was populated OR the version section populated $VERSION used by use version.
From: todd.e.rinaldo [...] jpmorgan.com
Hi. I believe this has been released and should be resolved?
Show quoted text
> use version; > our $VERSION = q{2.4};
This does work, but only if you do the following: use version; BEGIN { our $VERSION = qv('0.1.1') } use Getopt::Euclid; Show quoted text
> $ARGV{"--version") was populated
Not possible since %ARGV gets exported AFTER you check if --version was passed on the command line Show quoted text
> the version section populated $VERSION used by use version.
Huh?
This was fixed in 0.2.0 according to Changes