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

Open
wants to merge 5 commits into
from

Conversation

Projects
None yet
3 participants
@saleyn
Contributor

saleyn commented Jul 23, 2013

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

Add check/3 and parse_and_check/3
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

This comment has been minimized.

Show comment Hide comment
@saleyn

saleyn Sep 19, 2013

Contributor

ping

Contributor

saleyn commented Sep 19, 2013

ping

@tuncer

This comment has been minimized.

Show comment Hide comment
@tuncer

tuncer Dec 12, 2013

Contributor

ping

Contributor

tuncer commented Dec 12, 2013

ping

@jcomellas

This comment has been minimized.

Show comment Hide comment
@jcomellas

jcomellas Dec 13, 2013

Owner

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

Owner

jcomellas commented Dec 13, 2013

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

@saleyn

This comment has been minimized.

Show comment Hide comment
@saleyn

saleyn Dec 20, 2013

Contributor

Did you get a chance to look at the patch?

Contributor

saleyn commented Dec 20, 2013

Did you get a chance to look at the patch?

@tuncer

This comment has been minimized.

Show comment Hide comment
@tuncer

tuncer Jun 28, 2016

Contributor

ping?

Contributor

tuncer commented Jun 28, 2016

ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment