let 'emerge -h world' print a nice help message powered by antarus; bug 67448
authorSimon Stelling <blubb@gentoo.org>
Tue, 2 May 2006 13:15:54 +0000 (13:15 -0000)
committerSimon Stelling <blubb@gentoo.org>
Tue, 2 May 2006 13:15:54 +0000 (13:15 -0000)
svn path=/main/trunk/; revision=3307

pym/emergehelp.py

index 2fd8b898a7db4fbeaf2ab014abdf7d0c070a9004..40314a6bd9cd0e81aee87cc197e281bc56f6568e 100644 (file)
@@ -14,7 +14,7 @@ def shorthelp():
        print "   "+turquoise("emerge")+" [ "+green("options")+" ] [ "+green("action")+" ] < "+turquoise("system")+" | "+turquoise("world")+" >"
        print "   "+turquoise("emerge")+" < "+turquoise("--sync")+" | "+turquoise("--metadata")+" | "+turquoise("--info")+" >"
        print "   "+turquoise("emerge")+" "+turquoise("--resume")+" [ "+green("--pretend")+" | "+green("--ask")+" | "+green("--skipfirst")+" ]"
-       print "   "+turquoise("emerge")+" "+turquoise("--help")+" [ "+green("system")+" | "+green("config")+" | "+green("--sync")+" ] "
+       print "   "+turquoise("emerge")+" "+turquoise("--help")+" [ "+green("system")+" | "+green("world")+" | "+green("config")+" | "+green("--sync")+" ] "
        print bold("Options:")+" "+green("-")+"["+green("abBcCdDefgGhikKlnNoOpqPsStuvV")+"] ["+green("--oneshot")+"] ["+green("--newuse")+"] ["+green("--noconfmem")+"]"
        print      "                                    ["+green("--columns")+"] ["+green("--nospinner")+"]"
        print bold("Actions:")+" [ "+green("--clean")+" | "+green("--depclean")+" | "+green("--prune")+" | "+green("--regen")+" | "+green("--search")+" | "+green("--unmerge")+" ]"
@@ -338,6 +338,18 @@ def help(myaction,myopts,havecolor=1):
                print "       good idea to do an \"emerge --pretend system\" before an \"emerge"
                print "       system\", just so you know what emerge is planning to do."
                print
+       elif myaction=="world":
+               print
+               print bold("Usage: ")+turquoise("emerge")+" [ "+green("options")+" ] "+turquoise("world")
+               print
+               print "       'emerge world' is the Portage command for completely updating your"
+               print "       system.  The normal procedure is to first do an 'emerge --sync' and"
+               print "       then an 'emerge --update --deep world'.  The first command brings your"
+               print "       local Portage tree up-to-date with the latest version information and"
+               print "       ebuilds.  The second command then rebuilds all packages for which newer"
+               print "       versions or newer ebuilds have become available since you last did a"
+               print "       sync and update."
+               print
        elif myaction=="config":
                outstuff=green("Config file management support (preliminary)")+"""