From: Simon Stelling Date: Tue, 2 May 2006 13:15:54 +0000 (-0000) Subject: let 'emerge -h world' print a nice help message powered by antarus; bug 67448 X-Git-Tag: v2.1_rc1~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1d7bd9795a0407e3013ba7e8f1df8423444044a9;p=portage.git let 'emerge -h world' print a nice help message powered by antarus; bug 67448 svn path=/main/trunk/; revision=3307 --- diff --git a/pym/emergehelp.py b/pym/emergehelp.py index 2fd8b898a..40314a6bd 100644 --- a/pym/emergehelp.py +++ b/pym/emergehelp.py @@ -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)")+"""