add getopt for "--" capability