1 package eu.svjatoslav.meviz.htmlindexer;
3 import java.util.ArrayList;
5 import eu.svjatoslav.meviz.Module;
7 public class Main implements Module {
9 CommandlineHandler commandlineHandler = new CommandlineHandler();
11 IndexingOptions indexingOptions;
15 public String getDescription() {
16 return "Generate HTML listing of directories.";
21 public String getModuleCommand() {
27 public void run(final String[] args) throws Exception {
29 indexingOptions = commandlineHandler.parseCommandlineArguments(args);
31 if (indexingOptions == null) {
32 showCommandlineHelp();
36 new FilesystemIndexer(indexingOptions.workingDirectory,
37 indexingOptions, new ArrayList<String>());
43 public void showCommandlineHelp() {
44 commandlineHandler.initParser().showHelp();
47 // public static void main(final String[] args) throws Exception {
49 // final Main main = new Main();
50 // main.run(new String[] { "-w", "/home/n0/Desktop/testGallery/" });