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