getopt on source