add cmdline opts for main env vars