summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 95f866063..14519df0f 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -614,7 +614,10 @@ if "--debug" in myopts:
# check if root user is the current user for the actions where emerge needs this
if portage.secpass < 2:
- # We've already allowed "--version" and "--help" above.
+ # We've already allowed "--version" and "--help" above.y
+ if not myaction:
+ help()
+ sys.exit(0)
if "--pretend" not in myopts and \
myaction not in ("search","info"):
if portage.secpass >= 1: