working longopts