sciurius / perl-Getopt-Long

Module Getopt::Long - extended processing of command line options
13 stars 17 forks source link

Be more precise about numeric errors #26

Closed DrHyde closed 5 months ago

DrHyde commented 12 months ago

(copied from https://rt.cpan.org/Public/Bug/Display.html?id=136918)

I'm using GetOptionsFromArray thus:

    GetOptionsFromArray(\@args,
        'month=i' => \$month,
        'year=i'  => \$year
    );

When my arguments are things like --year 2021.2 I get a warning:

    Value "2021.2" invalid for option year (number expected)

but 2021.2 is a number. It's just not an integer. Could you update the error message?

sciurius commented 12 months ago

Thank. As of 2.58 the message will be "integer number expected".

DrHyde commented 11 months ago

Thank you!

DrHyde commented 5 months ago

Any chance of releasing 2.58 any time soon? :-)

sciurius commented 5 months ago

On Tue, 11 Jun 2024 03:49:50 -0700, David Cantrell @.***> wrote:

Any chance of releasing 2.58 any time soon? :-)

Well, soon :)

It's on its way to the CPAN.

-- Johan

DrHyde commented 5 months ago

Thanks!