Using getopt_long

IBM notes
-Command line processing with getopt()

a gnu example
-from the gnu C library

code
-this seems like a very good code example