Joerg Sonnenberger wrote: > How does this work if -p is specified more than once? > You don't have to strdup optarg if you don't modify argv. > good call on -pp .. will fix up. on the strdup - was matching up the other getopt parse styles.. some of those don't appear to modify argv either..