check that argc is at least 3 for argv[1] = -r or -e