1 package eu.svjatoslav.meviz.htmlindexer;
3 import eu.svjatoslav.meviz.Module;
5 import java.util.ArrayList;
7 public class Main implements Module {
9 CommandlineHandler commandlineHandler = new CommandlineHandler();
15 public String getDescription() {
16 return "Generate HTML listing of directories.";
23 public String getModuleCommand() {
31 public void run(final String[] args) throws Exception {
33 if (commandlineHandler.parseCommandlineArguments(args))
34 if (commandlineHandler.removeIndex.isParameterSpecified())
35 new FilesystemIndexRemover(commandlineHandler);
37 new FilesystemIndexer(commandlineHandler.getWorkingDirectory(),
38 commandlineHandler, new ArrayList<String>());
46 public void showCommandlineHelp() {
47 commandlineHandler.parser.showHelp();