Remove main from Indexer

This commit is contained in:
coolneng 2021-01-11 20:56:54 +01:00
parent d921d56bad
commit 7dff28d7d0
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 0 additions and 14 deletions

View File

@ -132,18 +132,4 @@ public class Indexer {
commitChanges();
}
private static void usage() {
System.out.println("Usage: Indexer <directory>");
System.exit(1);
}
public static void main(String[] args) throws ParseException, IOException {
if (args.length != 1) {
usage();
}
String dataDirectory = args[0];
String indexDirectory = ".index";
Indexer indexer = new Indexer(dataDirectory, indexDirectory);
indexer.populateIndex();
}
}