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
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