Add --print-env and --global-env for unit testing purposes.
Document the --print-env and --global-env options.