lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/demo/org/apache/lucene/demo SearchFiles.java
Date Thu, 07 Oct 2004 18:19:16 GMT
dnaber      2004/10/07 11:19:16

  Modified:    src/demo/org/apache/lucene/demo SearchFiles.java
  Log:
  print usage information if user requests it with -h or -help
  
  Revision  Changes    Path
  1.5       +5 -1      jakarta-lucene/src/demo/org/apache/lucene/demo/SearchFiles.java
  
  Index: SearchFiles.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/demo/org/apache/lucene/demo/SearchFiles.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SearchFiles.java	16 Sep 2004 20:57:05 -0000	1.4
  +++ SearchFiles.java	7 Oct 2004 18:19:16 -0000	1.5
  @@ -33,7 +33,11 @@
   class SearchFiles {
     public static void main(String[] args) throws Exception {
       String usage =
  -      "java org.apache.lucene.demo.SearchFiles [-index dir] [-field f] [-repeat n] [-queries
file] [-raw] ";
  +      "Usage: java org.apache.lucene.demo.SearchFiles [-index dir] [-field f] [-repeat
n] [-queries file] [-raw] ";
  +    if (args.length > 0 && ("-h".equals(args[0]) || "-help".equals(args[0])))
{
  +      System.out.println(usage);
  +      System.exit(0);
  +    }
   
       String index = "index";
       String field = "contents";
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message