On 12.05.2016 15:22, Radim Krčmář wrote: > 2016-05-12 10:09+0200, Laurent Vivier: >> I don't know if it can help, but instead of creating our own API, >> perhaps we can implement getopt() and getopt_long() and use them? > > A known API is a good idea as long I'm not the one implementing it. :) > >> Or is it over-engineered? > > Yeah, getopt would make both callers and the library more complicated. We could maybe use the implementation from SLOF: http://git.qemu.org/?p=SLOF.git;a=blob;f=lib/libc/getopt/getopt.c;h=be626ddc290ee84b3605 It's BSD-licensed, so I think it should be ok to use it in kvm-unit-tests? Thomas -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html