convert argp to getopt for wider compatability