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();
13 public String getDescription() {
14 return "Generate HTML listing of directories.";
19 public String getModuleCommand() {
25 public void run(final String[] args) throws Exception {
27 if (commandlineHandler.parseCommandlineArguments(args))
28 if (commandlineHandler.removeIndex.isParameterSpecified())
29 new FilesystemIndexRemover(commandlineHandler);
31 new FilesystemIndexer(commandlineHandler.getWorkingDirectory(),
32 commandlineHandler, new ArrayList<String>());
38 public void showCommandlineHelp() {
39 commandlineHandler.parser.showHelp();