Skip Menu |

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

Report information
The Basics
Id: 71020
Status: new
Priority: 0/
Queue: Getopt-Declare

People
Owner: Nobody in particular
Requestors: keith.trnka [...] swype.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.14
Fixed in: (no value)



Subject: Required parameter missing isn't fatal
The DIAGNOSTICS section of the documentation says that required parameters missing should generate a fatal error along with the error message. I'm having a case where it's not generating a fatal error. Here's the relevant part of the spec: -in <files:if>... [required] The input file(s) of example sentences (one sentence per line). Here's the output on error: Error: in parameter '-in' (file "Swype/keith-sms.txt23" is not readable) Error: required parameter -in not found. (try 'test_examples.pl -help' for more information) But then it just continues running. Though I think I'm realizing it's probably safer to not use the :if type specifier in this case anyway, cause it would silently ignore anything after a file that doesn't exist in a list right? Running ActiveState Perl 5.12.4 x64 on Windows 7 64-bit under cygwin Overall though, I really like Getopt::Declare.