diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-30 04:38:58 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-30 04:38:58 +0000 |
commit | b91a7fa23729928a9ce37926d87cb06736feafc9 (patch) | |
tree | 3a37ac9144c08a303476f4550fe7ab9e884d5f05 /pym/emergehelp.py | |
parent | b53e9e8df967111ab4fa41e34ea07c7df7f4fb65 (diff) | |
download | portage-b91a7fa23729928a9ce37926d87cb06736feafc9.tar.gz portage-b91a7fa23729928a9ce37926d87cb06736feafc9.tar.bz2 portage-b91a7fa23729928a9ce37926d87cb06736feafc9.zip |
default --help should be usable, so make the extended output require --verbose (branches/2.1.2 r6906)
svn path=/main/branches/2.1.2.9/; revision=7474
Diffstat (limited to 'pym/emergehelp.py')
-rw-r--r-- | pym/emergehelp.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/pym/emergehelp.py b/pym/emergehelp.py index cc2dc0bbb..69c8453e9 100644 --- a/pym/emergehelp.py +++ b/pym/emergehelp.py @@ -1,4 +1,4 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -7,8 +7,7 @@ import os,sys from output import bold, turquoise, green def shorthelp(): - print - print + print bold("emerge:")+" the other white meat (command-line interface to the Portage system)" print bold("Usage:") print " "+turquoise("emerge")+" [ "+green("options")+" ] [ "+green("action")+" ] [ "+turquoise("ebuildfile")+" | "+turquoise("tbz2file")+" | "+turquoise("dependency")+" ] [ ... ]" print " "+turquoise("emerge")+" [ "+green("options")+" ] [ "+green("action")+" ] < "+turquoise("system")+" | "+turquoise("world")+" >" @@ -20,14 +19,12 @@ def shorthelp(): print " ["+green("--nospinner")+"]" print " [ "+green("--deep")+" ] [" + green("--with-bdeps")+" < " + turquoise("y") + " | "+ turquoise("n")+" > ]" print bold("Actions:")+" [ "+green("--clean")+" | "+green("--depclean")+" | "+green("--prune")+" | "+green("--regen")+" | "+green("--search")+" | "+green("--unmerge")+" ]" - print def help(myaction,myopts,havecolor=1): - if not myaction and ("--help" not in myopts): + if not myaction and ("--verbose" not in myopts): shorthelp() print - print " For more help try 'emerge --help' or consult the man page." - print + print " For more help try 'emerge --help --verbose' or consult the man page." elif not myaction: shorthelp() print |