getopt
getopt copied to clipboard
Add check/3, parse_and_check/3, and complete test cases
The functions now allow to specify options: [help | {skip, [Name::atom()]}]
help - instructs getopt:check/3 to return 'help'
when "-h" command line option is given and
option specification contains definition of 'help'.
This is needed to short-circuit the checker of
required options when help is requested.
{skip, Names} - tells the checker to skip checking given options
Added test cases for format_error/2 and the new functions mentioned above
ping
ping
I'm not sure I like this completely. Let me analyze it for a bit and I will have a response tomorrow.
Did you get a chance to look at the patch?
ping?