summaryrefslogtreecommitdiffstats
path: root/bin/emerge
diff options
context:
space:
mode:
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/emerge b/bin/emerge
index 4c51080fa..24ae8bc04 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -612,12 +612,13 @@ if "--debug" in myopts:
print "myaction", myaction
print "myopts", myopts
+if not myaction and not myfiles and "--resume" not in myopts:
+ help()
+ sys.exit(1)
+
# 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.
- if not myaction and not myfiles:
- help()
- sys.exit(1)
if "--pretend" not in myopts and \
myaction not in ("search","info"):
if portage.secpass >= 1: