# Disable color until we're sure that it should be enabled (after
# EMERGE_DEFAULT_OPTS has been parsed).
portage.output.havecolor = 0
-
- # optimize --help (no need to load config / EMERGE_DEFAULT_OPTS)
- if "--help" in args or "-h" in args:
- emerge_help()
- return 0
-
portage._disable_legacy_globals()
portage.dep._internal_warnings = True
if "--accept-properties" in myopts:
os.environ["ACCEPT_PROPERTIES"] = myopts["--accept-properties"]
+ # optimize --help (no need to load config / EMERGE_DEFAULT_OPTS)
+ if myaction == "help":
+ emerge_help()
+ return os.EX_OK
+
# Portage needs to ensure a sane umask for the files it creates.
os.umask(0o22)
if myaction == "sync":