Subject: | Required Arguments cause "perl -c" to fail |
Hi!
Using "REQUIRED ARGUMENTS" with Getopt::Euclid causes "perl -c" to fail,
complaining about missing arguments. Using the attached example file, I
get the following behavior:
skovran% perl -c ./euclid_compile_test.pl
Missing required argument:
--arg
(Try: euclid_compile_test.pl --help)
BEGIN failed--compilation aborted at ./euclid_compile_test.pl line 3.
skovran% perl -c ./euclid_compile_test.pl --arg
./euclid_compile_test.pl syntax OK
Would it be possible to check $COMPILING before validating the argument
list?
My version info is:
Getopt-Euclid-v0.0.5
Perl 5.8.8
Linux epona 2.6.15-gentoo-r7 #1 SMP PREEMPT Thu Mar 30 20:39:36 EST 2006
i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux
Thanks,
Steven Skovran
Subject: | euclid_compile_test.pl |
#!/usr/bin/perl
use Getopt::Euclid;
0;
__END__
=head1 REQUIRED ARGUMENTS
=item --arg
=cut