Switch optparse to env vars