summaryrefslogtreecommitdiffstats
path: root/bin/env-update
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-17 04:15:49 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-17 04:15:49 +0000
commitf0c1804dafa858d00e81f23b7f9efec24c169f33 (patch)
tree29129dde92f750641095c825721ae5589c37ec03 /bin/env-update
parent8c3aff2adc23596aa58e2d030d5c62ea344a6643 (diff)
downloadportage-f0c1804dafa858d00e81f23b7f9efec24c169f33.tar.gz
portage-f0c1804dafa858d00e81f23b7f9efec24c169f33.tar.bz2
portage-f0c1804dafa858d00e81f23b7f9efec24c169f33.zip
add -h/--help
svn path=/main/trunk/; revision=2565
Diffstat (limited to 'bin/env-update')
-rwxr-xr-xbin/env-update17
1 files changed, 16 insertions, 1 deletions
diff --git a/bin/env-update b/bin/env-update
index ec5ddf01e..3db5787d6 100755
--- a/bin/env-update
+++ b/bin/env-update
@@ -7,5 +7,20 @@ import os,sys
os.environ["PORTAGE_CALLER"] = "env-update"
sys.path = ["/usr/lib/portage/pym"]+sys.path
+def usage(status):
+ print "Usage: env-update"
+ print ""
+ print "See the env-update(1) man page for more info"
+ sys.exit(status)
+
+if "-h" in sys.argv or "--help" in sys.argv:
+ usage(0)
+
+makelinks=1
+
+if len(sys.argv) > 1:
+ print "!!! Invalid command line options!\n"
+ usage(1)
+
import portage
-portage.env_update()
+portage.env_update(makelinks)