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)