package com.github.aureliano.achmed;

import java.util.Properties;

import com.github.aureliano.achmed.helper.ApplicationHelper;
import com.github.aureliano.achmed.helper.FileHelper;
import com.github.aureliano.achmed.helper.PropertyHelper;

public class Application {

	public Application() {
		super();
	}
	
	public static void main(String[] args) {
		new Application().startUp(args);
	}
	
	public void startUp(String[] args) {
		if (args.length == 0) {
			this.printHelp();
			return;
		}
		
		if ((args[0].equals("-h")) || (args[0].equals("--help")) || (args[0].equals("help"))) {
			this.printHelp();
		} else if ((args[0].equals("-v")) || (args[0].equals("--version")) || (args[0].equals("version"))) {
			this.printVersion();
		} else if (args[0].equals("burst")) {
			this.prepareExecution(args[1]);
		} else {
			this.printError(args);
		}
	}

	protected void prepareExecution(String string) {
		throw new UnsupportedOperationException("Not implemented yet");
	}

	protected void printHelp() {
		System.out.println(ApplicationHelper.help());
	}
	
	protected void printVersion() {
		System.out.println(ApplicationHelper.version());
	}
	
	private void printError(String[] args) {
		throw new UnsupportedOperationException("Not implemented yet");
	}
}
@@ -42,30 +42,62 @@
 ort 
-java.util.Properties;%0A
+com.github.aureliano.achmed.exception.AchmedException;
 %0Aimp
@@ -200,70 +200,14 @@
 per.
-FileHelper;%0Aimport com.github.aureliano.achmed.helper.Property
+String
 Help
@@ -750,22 +750,21 @@
 %09%09%09this.
-prepar
+handl
 eExecuti
@@ -774,11 +774,8 @@
 args
-%5B1%5D
 );%0A%09
@@ -816,13 +816,54 @@
 ;%0A%09%09
-%7D
+%09System.exit(1);%0A%09%09%7D%0A%09%09%0A%09%09System.exit(0);
 %0A%09%7D%0A
+%09
 %0A%09pr
@@ -879,41 +879,460 @@
 oid 
-prepareExecution(String string) %7B
+handleExecution(String%5B%5D args) %7B%0A%09%09if (args.length == 1) %7B%0A%09%09%09this.prepareExecution(null);%0A%09%09%7D else if (args.length != 2) %7B%0A%09%09%09throw new AchmedException(%22Invalid arguments. You can pass just one file path after burst command.%22);%0A%09%09%7D else %7B%0A%09%09%09this.prepareExecution(args%5B1%5D);%0A%09%09%7D%0A%09%7D%0A%0A%09protected void prepareExecution(String path) %7B%0A%09%09if (StringHelper.isEmpty(path)) %7B%0A%09%09%09System.out.println(ApplicationHelper.error(new String%5B0%5D));%0A%09%09%09System.exit(1);%0A%09%09%7D
 %0A%09%09t
@@ -1618,69 +1618,56 @@
 %7B%0A%09%09
-throw new UnsupportedOperationException(%22Not implemented yet%22
+System.out.println(ApplicationHelper.error(args)
 );%0A%09

Handle execution parameters.