[PATCH libinput 1/8] tools: make event-debug's option parsing more flexible

Peter Hutterer peter.hutterer at who-t.net
Thu Dec 18 20:43:15 PST 2014


On Thu, Dec 18, 2014 at 08:24:24PM -0800, Bill Spitzak wrote:
> On 12/18/2014 03:16 PM, Peter Hutterer wrote:
> >We need to be able to turn config options on/off for testing, so switch to
> >something that's a bit more flexible than characters that represent the
> >options.
> 
> >+enum options {
> >+	OPT_DEVICE,
> >+	OPT_UDEV,
> >+	OPT_HELP,
> >+	OPT_VERBOSE,
> >+};
> 
> Should these perhaps be set to 'd', 'u', 'h', and 'v'?

no, the whole point of those is that the actual value doesn't matter.

Cheers,
   Peter


More information about the wayland-devel mailing list