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.