mirror of https://github.com/apache/lucene.git
print usage information if user requests it with -h or -help
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150580 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
135f24a875
commit
1f11f2e937
|
@ -33,7 +33,11 @@ import org.apache.lucene.queryParser.QueryParser;
|
|||
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";
|
||||
|
|
Loading…
Reference in New Issue