Skip Menu |

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

Report information
The Basics
Id: 66389
Status: patched
Priority: 0/
Queue: Getopt-Complete

People
Owner: Nobody in particular
Requestors: dean [...] cs.serenevy.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 0.24
  • 0.18
  • v0.03
Fixed in: 0.25



Subject: Can not pass array of file args?
Awesome looking module, but seems to have trouble accepting an array of file arguments: $ ls *.fig RobotMap-base.fig RobotMap-metrics.fig RobotMap-test.fig RobotMap.fig ## test1.pl use Getopt::Complete '<>=s@' => 'f'; print "got: $_\n" for $ARGS->bare_args; $ perl test1.pl *.fig Getopt::Complete ERROR: invalid argument RobotMap-metrics.fig. Select from: RobotMap-base.fig Getopt::Complete ERROR: invalid argument RobotMap-test.fig. Select from: RobotMap-base.fig Getopt::Complete ERROR: invalid argument RobotMap.fig. Select from: RobotMap-base.fig ## test2.pl use Getopt::Complete 'file=s@' => 'f'; $ perl test2.pl -f RobotMap-base.fig -f RobotMap-metrics.fig -f RobotMap-test.fig. Getopt::Complete ERROR: file has invalid value RobotMap-metrics.fig. Select from: RobotMap-base.fig Getopt::Complete ERROR: file has invalid value RobotMap-test.fig.. Select from: RobotMap-base.fig $ perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi (with 51 registered patches, see perl -V for more detail)
Subject: Re: [rt.cpan.org #66389] Can not pass array of file args?
Date: Sun, 6 Mar 2011 20:25:02 -0600
To: "bug-Getopt-Complete [...] rt.cpan.org" <bug-Getopt-Complete [...] rt.cpan.org>
From: Scott Smith <scottsmithus [...] yahoo.com>
Thanks, I'll check it out! On Mar 4, 2011, at 7:26 PM, "dean@cs.serenevy.net via RT" <bug-Getopt-Complete@rt.cpan.org> wrote: Show quoted text
> Fri Mar 04 20:26:44 2011: Request 66389 was acted upon. > Transaction: Ticket created by dean@cs.serenevy.net > Queue: Getopt-Complete > Subject: Can not pass array of file args? > Broken in: 0.24 > Severity: Important > Owner: Nobody > Requestors: dean@cs.serenevy.net > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=66389 > > > > Awesome looking module, but seems to have trouble accepting an array of > file arguments: > > $ ls *.fig > RobotMap-base.fig RobotMap-metrics.fig RobotMap-test.fig RobotMap.fig > > > ## test1.pl > use Getopt::Complete '<>=s@' => 'f'; > print "got: $_\n" for $ARGS->bare_args; > > $ perl test1.pl *.fig > Getopt::Complete ERROR: invalid argument RobotMap-metrics.fig. Select > from: RobotMap-base.fig > Getopt::Complete ERROR: invalid argument RobotMap-test.fig. Select > from: RobotMap-base.fig > Getopt::Complete ERROR: invalid argument RobotMap.fig. Select from: > RobotMap-base.fig > > > ## test2.pl > use Getopt::Complete 'file=s@' => 'f'; > > $ perl test2.pl -f RobotMap-base.fig -f RobotMap-metrics.fig -f > RobotMap-test.fig. > Getopt::Complete ERROR: file has invalid value RobotMap-metrics.fig. > Select from: RobotMap-base.fig > Getopt::Complete ERROR: file has invalid value RobotMap-test.fig.. > Select from: RobotMap-base.fig > > > $ perl -v > This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi > (with 51 registered patches, see perl -V for more detail) >
Sorry for the delay. I've committed a fix to github, and just uploaded version 0.25 to CPAN. Thanks for the clear test case. Let me know if you have any more issues. Scott On Sun Mar 06 21:25:25 2011, scottsmithus@yahoo.com wrote: Show quoted text
> Thanks, I'll check it out! > > On Mar 4, 2011, at 7:26 PM, "dean@cs.serenevy.net via RT" <bug-Getopt- > Complete@rt.cpan.org> wrote: >
> > Fri Mar 04 20:26:44 2011: Request 66389 was acted upon. > > Transaction: Ticket created by dean@cs.serenevy.net > > Queue: Getopt-Complete > > Subject: Can not pass array of file args? > > Broken in: 0.24 > > Severity: Important > > Owner: Nobody > > Requestors: dean@cs.serenevy.net > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=66389 > > > > > > > Awesome looking module, but seems to have trouble accepting an array
> of
> > file arguments: > > > > $ ls *.fig > > RobotMap-base.fig RobotMap-metrics.fig RobotMap-test.fig
> RobotMap.fig
> > > > > > ## test1.pl > > use Getopt::Complete '<>=s@' => 'f'; > > print "got: $_\n" for $ARGS->bare_args; > > > > $ perl test1.pl *.fig > > Getopt::Complete ERROR: invalid argument RobotMap-metrics.fig.
> Select
> > from: RobotMap-base.fig > > Getopt::Complete ERROR: invalid argument RobotMap-test.fig. Select > > from: RobotMap-base.fig > > Getopt::Complete ERROR: invalid argument RobotMap.fig. Select from: > > RobotMap-base.fig > > > > > > ## test2.pl > > use Getopt::Complete 'file=s@' => 'f'; > > > > $ perl test2.pl -f RobotMap-base.fig -f RobotMap-metrics.fig -f > > RobotMap-test.fig. > > Getopt::Complete ERROR: file has invalid value RobotMap-metrics.fig. > > Select from: RobotMap-base.fig > > Getopt::Complete ERROR: file has invalid value RobotMap-test.fig.. > > Select from: RobotMap-base.fig > > > > > > $ perl -v > > This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi > > (with 51 registered patches, see perl -V for more detail) > >