Parses command line arguments and environment variables into a frozen object.