summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2006-07-15 01:37:13 +0000
committerMarius Mauch <genone@gentoo.org>2006-07-15 01:37:13 +0000
commit11b879722b7a289047c29ef35e897ad38da3852b (patch)
tree5e4d5936c3e7aa9de3dd0215d7fdf2fa178154f9 /pym/emergehelp.py
parentdisable regular expressions for search by default (diff)
downloadportage-multirepo-11b879722b7a289047c29ef35e897ad38da3852b.tar.gz
portage-multirepo-11b879722b7a289047c29ef35e897ad38da3852b.tar.bz2
portage-multirepo-11b879722b7a289047c29ef35e897ad38da3852b.zip
update search docs
svn path=/main/trunk/; revision=3877
Diffstat (limited to 'pym/emergehelp.py')
-rw-r--r--pym/emergehelp.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/pym/emergehelp.py b/pym/emergehelp.py
index ff6c4e6c..9b1c9032 100644
--- a/pym/emergehelp.py
+++ b/pym/emergehelp.py
@@ -107,15 +107,19 @@ def help(myaction,myopts,havecolor=1):
print
print " "+green("--search")+" ("+green("-s")+" short option)"
print " Searches for matches of the supplied string in the current local"
- print " portage tree. The search string is a regular expression."
+ print " portage tree. By default emerge uses a case-insensitive simple "
+ print " search, but you can enable a regular expression search by "
+ print " prefixing the search string with %%."
print " Prepending the expression with a '@' will cause the category to"
print " be included in the search."
print " A few examples:"
- print " "+bold("emerge search '^kde'")
+ print " "+bold("emerge --search libc")
+ print " list all packages that contain libc in their name"
+ print " "+bold("emerge --search '%^kde'")
print " list all packages starting with kde"
- print " "+bold("emerge search 'gcc$'")
+ print " "+bold("emerge --search '%gcc$'")
print " list all packages ending with gcc"
- print " "+bold("emerge search @^dev-java.*jdk")
+ print " "+bold("emerge --search '%@^dev-java.*jdk'")
print " list all available Java JDKs"
print
print " "+green("--searchdesc")+" ("+green("-S")+" short option)"