test getopt instead of sys.argv