getopt icon indicating copy to clipboard operation
getopt copied to clipboard

Add check/3, parse_and_check/3, and complete test cases

Open saleyn opened this issue 10 years ago • 5 comments

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

saleyn avatar Jul 23 '13 22:07 saleyn

ping

saleyn avatar Sep 19 '13 11:09 saleyn

ping

ghost avatar Dec 12 '13 15:12 ghost

I'm not sure I like this completely. Let me analyze it for a bit and I will have a response tomorrow.

jcomellas avatar Dec 13 '13 02:12 jcomellas

Did you get a chance to look at the patch?

saleyn avatar Dec 20 '13 15:12 saleyn

ping?

ghost avatar Jun 28 '16 00:06 ghost