--- /dev/null
+package eu.svjatoslav.instantlauncher;
+
+import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
+import eu.svjatoslav.commons.commandline.parameterparser.Parser;
+
+public class CommandlineHandler {
+
+ Parameter helpParameter = new Parameter("Show commandline optons help", "-h", "--help");
+ private final Parser parser;
+
+ public CommandlineHandler() {
+
+ parser = new Parser();
+ parser.addParameter(helpParameter);
+
+ }
+
+ public void parseCommandlineArguments(final String[] args) {
+
+ if (!parser.parse(args))
+ return;
+
+ if (helpParameter.isParameterSpecified()) {
+ parser.showHelp();
+ System.exit(0);
+ }
+ }
+}
public static void main(final String[] args) {
try {
+
+ final CommandlineHandler commandlineHandler = new CommandlineHandler();
+ commandlineHandler.parseCommandlineArguments(args);
+
final InstantLauncher instantLauncher = new InstantLauncher();
instantLauncher.run();
} catch (final Exception e) {