Parsing command line and env vars