Document the negative search - dossier - console collection manager
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 63b6336caa8dab28e9ade4d6fc128ed9512c2be4
DIR parent 43ed14f30d8302ad4a67b65efbb8848f1d24f351
HTML Author: Solene Rapenne <solene@perso.pw>
Date: Sat, 4 Aug 2018 16:00:28 +0200
Document the negative search
Diffstat:
M README | 4 ++++
M dossier.1 | 12 +++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)
---
DIR diff --git a/README b/README
@@ -18,6 +18,10 @@ How to use dossier
openmw:no
$ dossier search multiplayer no
openmw
+ $ dossier search !multiplayer no
+ supertux
+ nexuiz
+ minetest
$ dossier search multiplayer yes rate 5
supertux
$ dossier supertux rate 6
DIR diff --git a/dossier.1 b/dossier.1
@@ -92,8 +92,8 @@ repository in it if possible.
.It Nm Cm search Oo attribute Oo value Oc Oc Op attribute value
the command
.Cm search
-with no argument will return the list of known attributes in the collections with the
-number of items for which the attribute is set.
+with no argument will return the list of known attributes in the collections
+with the number of items for which the attribute is set.
.Pp
the command
.Nm search
@@ -108,7 +108,13 @@ with two parameters will return the list of the items having the value
in the attribute
.Ar attribute.
.Pp
-Using more arguments will return the list of the items matching all the conditions of values in attributes.
+Using more arguments will return the list of the items matching all the
+conditions of values in attributes.
+.Pp
+Adding an exclamation mark character at the start of an attribute name like
+.Ar !attribute
+will return results not matching
+.Ar value.
.It Nm Ar item-name
shows all the attributes known for that item.
.Pp