summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-05-02 13:15:54 +0000
committerSimon Stelling <blubb@gentoo.org>2006-05-02 13:15:54 +0000
commit1d7bd9795a0407e3013ba7e8f1df8423444044a9 (patch)
tree7971f0a7512bc571cdec7231b2a4c2de1849e2f2 /pym/emergehelp.py
parentuse escaping code that works for mrxvt too; thanks to nelchael for the patch;... (diff)
downloadportage-idfetch-1d7bd9795a0407e3013ba7e8f1df8423444044a9.tar.gz
portage-idfetch-1d7bd9795a0407e3013ba7e8f1df8423444044a9.tar.bz2
portage-idfetch-1d7bd9795a0407e3013ba7e8f1df8423444044a9.zip
let 'emerge -h world' print a nice help message powered by antarus; bug 67448
svn path=/main/trunk/; revision=3307
Diffstat (limited to 'pym/emergehelp.py')
-rw-r--r--pym/emergehelp.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/pym/emergehelp.py b/pym/emergehelp.py
index 2fd8b898..40314a6b 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)")+"""