Subject: | wish: support args with no leading dashes |
I was wondering why my network checks won't working, and it turned out I had done this:
my $email = Email::Valid->address(
-address => 'mark@boomboomkaboomboom.com', allow_ip => 0, mxcheck => 1, tldcheck => 1
);
See the bug?
I was missing the leading dashes on most of my arg names.
Sadly, Email::Valid didn't reject the invalid names, or accept them as valid alternatives, it just silently ignored them.
Leading dashes are old school. Email::Valid should accept the non-leading-dash variants for all it's args. I would even say the docs should all be updated to use the new style, and the fact that it still supports the old leading-dash style can become a footnote in the docs.