Re: [PATCH weston v2 2/7] shared/option-parser: Rework option parsing

2013-04-26 Thread Bill Spitzak
This looks good to me, especially with all the automatic tests added. Quentin Glidic wrote: -static void -handle_option(const struct weston_option *option, char *value) +enum state { + OK, + EATEN, + ERROR +}; + +static enum state +handle_option(const struct weston_option *opt

[PATCH weston v2 2/7] shared/option-parser: Rework option parsing

2013-04-26 Thread Quentin Glidic
From: Quentin Glidic Long options with argument support two formats: equal ("--long=arg") and space ("--long arg") Short options now support three formats: short ("-sarg"), equal ("-s=arg") and space ("-s value") Provide a test program Signed-off-by: Quentin Glidic --- man/weston.man