Add the f argument to optparse to avoid segfault.

 Otherwise optarg is set to 0, and we segfault when we
 try to strcpy it.