parse command line options and set environment variables based on this options