On Fri, May 4, 2012 at 6:45 PM, Mike Frysinger <vapier@xxxxxxxxxx> wrote: > On Friday 04 May 2012 11:24:22 Sami Kerola wrote: >> The optional argument syntax is simply causing confusion, and is >> not POSIX compliant way of using getopt(3). > > you're using getopt_long(), not getopt(), so what POSIX has to say really > doesn't matter. That's just sneaky. One could expect _long to mean --options but not change of behaviour of short options. But point taken, DifferentFunction() is different_funtion(). IMHO avoiding optional options still makes sense. Syntax of the optional arguments is exactly different than the required argument, which obviously is cause of confusion and therefore intolerable. -- Sami Kerola http://www.iki.fi/kerolasa/