+/.classpath
+/.project
target/
--- /dev/null
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.6
--- /dev/null
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=false
+version=1
<dependency>
<groupId>eu.svjatoslav</groupId>
<artifactId>svjatoslavcommons</artifactId>
- <version>1.1-SNAPSHOT</version>
+ <version>1.2-SNAPSHOT</version>
</dependency>
<dependency>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
- <version>2.2</version>
+ <version>2.4</version>
</extension>
</extensions>
<snapshotRepository>
<id>svjatoslav.eu</id>
<name>svjatoslav.eu</name>
- <url>scp://svjatoslav.eu:7022/var/www/maven</url>
+ <url>scp://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
</snapshotRepository>
+ <repository>
+ <id>svjatoslav.eu</id>
+ <name>svjatoslav.eu</name>
+ <url>scp://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
+ </repository>
</distributionManagement>
<repositories>
import java.io.File;
-import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
import eu.svjatoslav.commons.commandline.parameterparser.Parser;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.ExistingDirectory;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.StringArgument;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.DirectoryParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.NullParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameter;
public class CommandlineHandler {
- Parameter recursiveParameter = new Parameter("Enable recursive mode.",
- "-r", "--recursive");
+ Parser parser = new Parser();
- Parameter inputPatternParameter = new Parameter(true, true, true,
- new StringArgument(), "File input pattern.", "-i",
- "--input-pattern");
+ NullParameter recursiveParameter = parser.createNullParameter(
+ "Enable recursive mode.").addAliases("-r", "--recursive");
- Parameter workingDirectoryParameter = new Parameter(false, true, true,
- new ExistingDirectory(), "Working directory.", "-w",
- "--working-directory");
+ StringParameter inputPatternParameter = parser.createStringParameter(
+ "File input pattern.").addAliases("-i", "--input-pattern");
+
+ DirectoryParameter workingDirectoryParameter = parser
+ .createDirectoryParameter("Working directory.")
+ .addAliases("-w", "--working-directory").mustExist();
public Parser initParser() {
options.recursive = true;
if (workingDirectoryParameter.isParameterSpecified())
- options.targetDirectory = workingDirectoryParameter
- .getArgumentsAsFiles().get(0);
+ options.targetDirectory = workingDirectoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
+ // TODO: add support for multiple input patterns
if (inputPatternParameter.isParameterSpecified())
options.inputPatterns.addAll(inputPatternParameter
.getArgumentsAsStrings());
import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
import eu.svjatoslav.commons.commandline.parameterparser.Parser;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.StringArgument;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.DirectoryParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.NullParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameter;
public class CommandlineHandler {
- Parameter outputFormatParameter = new Parameter(true, true, true,
- new StringArgument(), "Encoding output format.", "-o",
- "--output-format");
+ Parser parser = new Parser();
- Parameter terminalParameter = new Parameter("Enable popup terminal.",
- "--terminal");
+ StringParameter outputFormatParameter = parser
+ .createStringParameter("Encoding output format.")
+ .addAliases("-o", "--output-format").setMandatory();
- Parameter deinterlaceParameter = new Parameter("Deinterlace video.",
- "--deinterlace", "-d");
+ NullParameter terminalParameter = parser.createNullParameter(
+ "Enable popup terminal.").addAliases("--terminal");
- Parameter testParameter = new Parameter("Simulate file encoding.", "-t",
- "--test");
+ NullParameter deinterlaceParameter = parser.createNullParameter(
+ "Deinterlace video.").addAliases("--deinterlace", "-d");
- Parameter recursiveParameter = new Parameter("Enable recursive mode.",
- "-r", "--recursive");
+ NullParameter testParameter = parser.createNullParameter(
+ "Simulate file encoding.").addAliases("-t", "--test");
- Parameter inputPatternParameter = new Parameter(true, true, true,
- new StringArgument(), "File input pattern.", "-i",
- "--input-pattern");
+ NullParameter recursiveParameter = parser.createNullParameter(
+ "Enable recursive mode.").addAliases("-r", "--recursive");
- Parameter workingDirectoryParameter = new Parameter(
- false,
- true,
- true,
- new eu.svjatoslav.commons.commandline.parameterparser.arguments.ExistingDirectory(),
- "Working directory.", "-w", "--working-directory");
+ StringParameter inputPatternParameter = parser
+ .createStringParameter("File input pattern.")
+ .addAliases("-i", "--input-pattern").setMandatory();
- Parameter videoBitrateParameter = new Parameter(false, true, false,
- new Bitrate(), "Video bitrate.", "-v", "--video-bitrate");
+ DirectoryParameter workingDirectoryParameter = parser
+ .createDirectoryParameter("Working directory.")
+ .addAliases("-w", "--working-directory").mustExist();
+
+ Parameter videoBitrateParameter = parser.createCustomParameter(
+ new Bitrate(), "Video bitrate.")
+ .addAliases("-v", "--video-bitrate");
public Parser initParser() {
final Parser parser = new Parser();
if (videoBitrateParameter.isParameterSpecified())
try {
options.videoBitrate = Bitrate.bitrate
- .valueOf(videoBitrateParameter.getArgumentAsString()
- .toUpperCase());
+ .valueOf(videoBitrateParameter.getArgumentsAsStrings()
+ .get(0).toUpperCase());
} catch (final Exception e) {
System.out
.println("Invalid video bitrate. Valid values are: LOW, MEDIUM, HIGH.");
import java.io.File;
-import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
import eu.svjatoslav.commons.commandline.parameterparser.Parser;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.StringArgument;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.DirectoryParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameter;
import eu.svjatoslav.meviz.encoder.EncodingOptions;
public class CommandlineHandler {
- Parameter galleryNameParameter = new Parameter(false, true, false,
- new StringArgument(), "Gallery title. (default is: "
- + Constants.DEFAULT_GALLERY_TITLE + ").", "-t",
- "--gallery-title");
+ Parser parser = new Parser();
- Parameter workingDirectoryParameter = new Parameter(false, true, true,
- new StringArgument(), "Working directory.", "-w",
- "--working-directory");
+ StringParameter galleryNameParameter = parser.createStringParameter(
+ "Gallery title. (default is: " + Constants.DEFAULT_GALLERY_TITLE
+ + ").").addAliases("-t", "--gallery-title");
- public Parser initParser() {
+ DirectoryParameter workingDirectoryParameter = parser
+ .createDirectoryParameter("Working directory.").addAliases("-w",
+ "--working-directory");
- final Parser parser = new Parser();
- parser.addParameter(galleryNameParameter);
- parser.addParameter(workingDirectoryParameter);
+ public String getGalleryTitle() {
+ if (galleryNameParameter.isParameterSpecified())
+ return galleryNameParameter.getValue();
+ return Constants.DEFAULT_GALLERY_TITLE;
+ }
- return parser;
+ public File getWorkingDirectory() {
+ if (workingDirectoryParameter.isParameterSpecified())
+ return workingDirectoryParameter.getValue();
+ else
+ return new File(System.getProperty("user.dir"));
}
/**
* successfully parsed, or <code>null</code> if parsing error
* occurred.
*/
- public IndexingOptions parseCommandlineArguments(final String[] args) {
-
- final IndexingOptions options = new IndexingOptions();
-
- final Parser parser = initParser();
- if (!parser.parse(args))
- return null;
-
- if (galleryNameParameter.isParameterSpecified())
- options.galleryTitle = galleryNameParameter.getArgumentsAsStrings()
- .get(0);
-
- if (workingDirectoryParameter.isParameterSpecified())
- options.workingDirectory = workingDirectoryParameter
- .getArgumentsAsFiles().get(0);
- else
- options.workingDirectory = new File(System.getProperty("user.dir"));
-
- return options;
+ public boolean parseCommandlineArguments(final String[] args) {
+ return parser.parse(args);
}
}
private DirectoryMetadata metadata;
- private final IndexingOptions indexingOptions;
-
private final List<String> pathElements;
private HashSet<Layout> layouts;
+ private final CommandlineHandler commandlineHandler;
+
public FilesystemIndexer(final File directoryToIndex,
- final IndexingOptions indexingOptions,
+ final CommandlineHandler commandlineHandler,
final List<String> pathElements) throws IOException,
ImageFormatError {
this.directoryToIndex = directoryToIndex;
- this.indexingOptions = indexingOptions;
+ this.commandlineHandler = commandlineHandler;
this.pathElements = pathElements;
if (!directoryToIndex.canRead())
layouts = new HashSet<Layout>();
layouts.add(new MixedLayout());
+ final String galleryTitle = commandlineHandler.getGalleryTitle();
+
for (final Layout layout : layouts)
- layout.init(indexingOptions.galleryTitle, pathElements, this,
- new IndexingContext("", "."));
+ layout.init(galleryTitle, pathElements, this, new IndexingContext(
+ "", "."));
}
public void initializeThumbnailsDirectory() {
metadata.ensureFileMetainfoIsUpToDate(directoryToIndex, file);
if (file.isDirectory())
- new FilesystemIndexer(file, indexingOptions,
+ new FilesystemIndexer(file, commandlineHandler,
getChildPath(file));
}
}
+++ /dev/null
-/*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public License
- * as published by the Free Software Foundation.
- */
-
-package eu.svjatoslav.meviz.htmlindexer;
-
-import java.io.File;
-
-public class IndexingOptions {
-
- File workingDirectory;
-
- String galleryTitle = Constants.DEFAULT_GALLERY_TITLE;
-
-}
CommandlineHandler commandlineHandler = new CommandlineHandler();
- IndexingOptions indexingOptions;
-
/** {@inheritDoc} */
@Override
public String getDescription() {
@Override
public void run(final String[] args) throws Exception {
- indexingOptions = commandlineHandler.parseCommandlineArguments(args);
+ final boolean parsingStatus = commandlineHandler
+ .parseCommandlineArguments(args);
- if (indexingOptions == null) {
+ if (!parsingStatus) {
showCommandlineHelp();
return;
}
- new FilesystemIndexer(indexingOptions.workingDirectory,
- indexingOptions, new ArrayList<String>());
+ new FilesystemIndexer(commandlineHandler.getWorkingDirectory(),
+ commandlineHandler, new ArrayList<String>());
}
/** {@inheritDoc} */
@Override
public void showCommandlineHelp() {
- commandlineHandler.initParser().showHelp();
+ commandlineHandler.parser.showHelp();
}
- // public static void main(final String[] args) throws Exception {
- //
- // final Main main = new Main();
- // main.run(new String[] { "-w", "/home/n0/Desktop/testGallery/" });
- //
- // }
-
}
import java.io.File;
-import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
import eu.svjatoslav.commons.commandline.parameterparser.Parser;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.ExistingDirectory;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.StringArgument;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.DirectoryParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.NullParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameter;
import eu.svjatoslav.meviz.encoder.EncodingOptions;
public class CommandlineHandler {
- Parameter recursiveParameter = new Parameter("Enable recursive mode.",
- "-r", "--recursive");
+ Parser parser = new Parser();
- Parameter testParameter = new Parameter(
- "Simulate renaming (no changes will be actually done).", "-t",
- "--test");
+ NullParameter recursiveParameter = parser.createNullParameter(
+ "Enable recursive mode.").addAliases("-r", "--recursive");
- Parameter outputPatternParameter = new Parameter(true, true, true,
- new StringArgument(), "Output pattern.", "-o", "--output-pattern");
+ NullParameter testParameter = parser.createNullParameter(
+ "Simulate renaming (no changes will be actually done).")
+ .addAliases("-t", "--test");
- Parameter inputPatternParameter = new Parameter(true, true, true,
- new StringArgument(), "File input pattern.", "-i",
- "--input-pattern");
+ StringParameter outputPatternParameter = parser.createStringParameter(
+ "Output pattern.").addAliases("-o", "--output-pattern");
- Parameter workingDirectoryParameter = new Parameter(false, true, true,
- new ExistingDirectory(), "Working directory.", "-w",
- "--working-directory");
+ StringParameter inputPatternParameter = parser.createStringParameter(
+ "File input pattern.").addAliases("-i", "--input-pattern");
- public Parser initParser() {
-
- final Parser parser = new Parser();
- parser.addParameter(recursiveParameter);
- parser.addParameter(testParameter);
- parser.addParameter(outputPatternParameter);
- parser.addParameter(inputPatternParameter);
- parser.addParameter(workingDirectoryParameter);
-
- return parser;
- }
+ DirectoryParameter workingDirectoryParameter = parser
+ .createDirectoryParameter("Working directory.")
+ .addAliases("-w", "--working-directory").mustExist();
/**
* @return {@link EncodingOptions} if commandline arguments were
final RenamingOptions options = new RenamingOptions();
- final Parser parser = initParser();
if (!parser.parse(args))
return null;
options.recursive = true;
if (outputPatternParameter.isParameterSpecified())
- options.outputPattern = outputPatternParameter
- .getArgumentsAsStrings().get(0);
+ options.outputPattern = outputPatternParameter.getValue();
if (workingDirectoryParameter.isParameterSpecified())
- options.targetDirectory = workingDirectoryParameter
- .getArgumentsAsFiles().get(0);
+ options.targetDirectory = workingDirectoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
+ // TODO: add multiple input patterns support
if (inputPatternParameter.isParameterSpecified())
options.inputPatterns.addAll(inputPatternParameter
.getArgumentsAsStrings());
@Override
public void showCommandlineHelp() {
- commandlineHandler.initParser().showHelp();
+ commandlineHandler.parser.showHelp();
System.out.println("");
System.out.println("Output pattern special symbols:");
System.out.println(" % - file number");
import java.io.File;
-import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
import eu.svjatoslav.commons.commandline.parameterparser.Parser;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.ExistingDirectory;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.StringArgument;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.DirectoryParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.NullParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameter;
public class CommandlineHandler {
- Parameter recursiveParameter = new Parameter("Enable recursive mode.",
- "-r", "--recursive");
+ Parser parser = new Parser();
- Parameter searchForPattern = new Parameter(true, true, false,
- new StringArgument(), "String to search for", "-s",
- "--search-pattern");
+ NullParameter recursiveParameter = parser.createNullParameter(
+ "Enable recursive mode.").addAliases("-r", "--recursive");
- Parameter replaceWithPattern = new Parameter(true, true, false,
- new StringArgument(), "String to place instead", "-p",
- "--replace-pattern");
+ StringParameter searchForPattern = parser
+ .createStringParameter("String to search for")
+ .addAliases("-s", "--search-pattern").setMandatory();
- Parameter workingDirectoryParameter = new Parameter(false, true, false,
- new ExistingDirectory(), "Working directory.", "-w",
- "--working-directory");
+ StringParameter replaceWithPattern = parser.createStringParameter(
+ "String to place instead").addAliases("-p", "--replace-pattern");
- public Parser initParser() {
-
- final Parser parser = new Parser();
- parser.addParameter(recursiveParameter);
- parser.addParameter(searchForPattern);
- parser.addParameter(replaceWithPattern);
- parser.addParameter(workingDirectoryParameter);
-
- return parser;
- }
+ DirectoryParameter directoryParameter = parser
+ .createDirectoryParameter("Working directory.")
+ .addAliases("-w", "--working-directory").mustExist();
public CommandlineOptions parseCommandlineArguments(final String[] args) {
final CommandlineOptions options = new CommandlineOptions();
- final Parser parser = initParser();
if (!parser.parse(args))
return null;
if (recursiveParameter.isParameterSpecified())
options.recursive = true;
- if (workingDirectoryParameter.isParameterSpecified())
- options.targetDirectory = workingDirectoryParameter
- .getArgumentsAsFiles().get(0);
+ if (directoryParameter.isParameterSpecified())
+ options.targetDirectory = directoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
if (searchForPattern.isParameterSpecified())
- options.searchForPattern = searchForPattern.getArgumentAsString();
+ options.searchForPattern = searchForPattern.getValue();
if (replaceWithPattern.isParameterSpecified())
- options.replaceWithPattern = replaceWithPattern
- .getArgumentAsString();
+ options.replaceWithPattern = replaceWithPattern.getValue();
return options;
}
CommandlineOptions options;
-
@Override
public String getDescription() {
return "Replace one string to another string in all occurrances and all files recursively.";
public void processFile(final File file) throws IOException {
- FileReader fileReader = new FileReader(file);
- BufferedReader bufferedReader = new BufferedReader(fileReader);
+ final FileReader fileReader = new FileReader(file);
+ final BufferedReader bufferedReader = new BufferedReader(fileReader);
- StringBuffer result = new StringBuffer();
+ final StringBuffer result = new StringBuffer();
boolean contentChanged = false;
while (true) {
- String line = bufferedReader.readLine();
+ final String line = bufferedReader.readLine();
if (line == null)
break;
- String newLine = line.replace(options.searchForPattern,
+ final String newLine = line.replace(options.searchForPattern,
options.replaceWithPattern);
if (!contentChanged)
fileReader.close();
if (contentChanged) {
- FileWriter fileWriter = new FileWriter(file);
+ final FileWriter fileWriter = new FileWriter(file);
fileWriter.write(result.toString());
fileWriter.close();
}
@Override
public void showCommandlineHelp() {
- commandlineHandler.initParser().showHelp();
+ commandlineHandler.parser.showHelp();
}
}
import java.io.File;
-import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
import eu.svjatoslav.commons.commandline.parameterparser.Parser;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.ExistingDirectory;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.StringArgument;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.DirectoryParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.NullParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameter;
public class CommandlineHandler {
- Parameter recursiveParameter = new Parameter("Enable recursive mode.",
- "-r", "--recursive");
+ Parser parser = new Parser();
- Parameter fileInputPatternsParameter = new Parameter(true, true, true,
- new StringArgument(), "File input pattern.", "-i",
- "--input-pattern");
+ NullParameter recursiveParameter = parser.createNullParameter(
+ "Enable recursive mode.").addAliases("-r", "--recursive");
- Parameter splitPatternsParameter = new Parameter(true, true, true,
- new StringArgument(), "File split regular expression.", "-s",
- "--split-pattern");
+ StringParameter fileInputPatternsParameter = parser
+ .createStringParameter("File input pattern.")
+ .addAliases("-i", "--input-pattern").setMandatory();
- Parameter workingDirectoryParameter = new Parameter(false, true, true,
- new ExistingDirectory(), "Working directory.", "-w",
- "--working-directory");
+ StringParameter splitPatternsParameter = parser
+ .createStringParameter("File split regular expression.")
+ .addAliases("-s", "--split-pattern").setMandatory();
- public Parser initParser() {
-
- final Parser parser = new Parser();
- parser.addParameter(recursiveParameter);
- parser.addParameter(fileInputPatternsParameter);
- parser.addParameter(splitPatternsParameter);
- parser.addParameter(workingDirectoryParameter);
-
- return parser;
- }
+ DirectoryParameter workingDirectoryParameter = parser
+ .createDirectoryParameter("Working directory.").addAliases("-w",
+ "--working-directory");
public TextSplittingOptions parseCommandlineArguments(final String[] args) {
final TextSplittingOptions options = new TextSplittingOptions();
- final Parser parser = initParser();
if (!parser.parse(args))
return null;
options.recursive = true;
if (workingDirectoryParameter.isParameterSpecified())
- options.targetDirectory = workingDirectoryParameter
- .getArgumentsAsFiles().get(0);
+ options.targetDirectory = workingDirectoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
@Override
public void showCommandlineHelp() {
- commandlineHandler.initParser().showHelp();
+ commandlineHandler.parser.showHelp();
}
}
import java.io.File;
-import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
import eu.svjatoslav.commons.commandline.parameterparser.Parser;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.ExistingDirectory;
-import eu.svjatoslav.commons.commandline.parameterparser.arguments.StringArgument;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.DirectoryParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.NullParameter;
+import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameter;
public class CommandlineHandler {
- Parameter recursiveParameter = new Parameter("Enable recursive mode.",
- "-r", "--recursive");
+ Parser parser = new Parser();
- Parameter inputPatternParameter = new Parameter(true, true, true,
- new StringArgument(), "File input pattern.", "-i",
- "--input-pattern");
+ NullParameter recursiveParameter = parser.createNullParameter(
+ "Enable recursive mode.").addAliases("-r", "--recursive");
- Parameter workingDirectoryParameter = new Parameter(false, true, true,
- new ExistingDirectory(), "Working directory.", "-w",
- "--working-directory");
+ StringParameter inputPatternParameter = parser.createStringParameter(
+ "File input pattern.").addAliases("-i", "--input-pattern");
- public Parser initParser() {
-
- final Parser parser = new Parser();
- parser.addParameter(recursiveParameter);
- parser.addParameter(inputPatternParameter);
- parser.addParameter(workingDirectoryParameter);
-
- return parser;
- }
+ DirectoryParameter workingDirectoryParameter = parser
+ .createDirectoryParameter("Working directory.").addAliases("-w",
+ "--working-directory");
public TextTruncatingOptions parseCommandlineArguments(final String[] args) {
final TextTruncatingOptions options = new TextTruncatingOptions();
- final Parser parser = initParser();
if (!parser.parse(args))
return null;
@Override
public void showCommandlineHelp() {
- commandlineHandler.initParser().showHelp();
+ commandlineHandler.parser.showHelp();
}
}