[Debtags-commits] [svn] r1817 - in debtags/1.6.0: . tools

Enrico Zini enrico at costa.debian.org
Sat Jul 8 13:22:47 UTC 2006


Author: enrico
Date: Sat Jul  8 13:22:47 2006
New Revision: 1817

Modified:
   debtags/1.6.0/   (props changed)
   debtags/1.6.0/tools/debtags.cc
Log:
 r3003 at viaza:  enrico | 2006-07-08 15:22:17 +0200
 Allow to put multiple keywords on the commandline


Modified: debtags/1.6.0/tools/debtags.cc
==============================================================================
--- debtags/1.6.0/tools/debtags.cc	(original)
+++ debtags/1.6.0/tools/debtags.cc	Sat Jul  8 13:22:47 2006
@@ -2284,7 +2284,14 @@
 			if (!opts.hasNext())
 				throw wibble::exception::BadOption("you should specify one pattern to search");
 
-			SmartSearcher searcher(*ept, opts.next());
+			string keywords;
+			while (opts.hasNext())
+				if (keywords.empty())
+					keywords = opts.next();
+				else
+					keywords += " " + opts.next();
+
+			SmartSearcher searcher(*ept, keywords);
 			searcher.interact();
 
 #if 0



More information about the Debtags-commits mailing list