optparse for test program