package com.automatium.system.http;

import com.automatium.system.http.listener.HTTPExecutionListener;

/**
 * Created by Gurusharan on 27-12-2016.
 */
public class HTTPExecutor {

    public static void main(String[] args) throws InterruptedException {
        String portString = System.getProperty("port", "0");

        int port = Integer.parseInt(portString);

        HTTPExecutionListener listener = new HTTPExecutionListener(port);
        listener.start();

        while (listener.isRunning()) {
            Thread.sleep(1000L);
        }
    }
}

@@ -247,16 +247,127 @@
 ption %7B%0A
+%0A        if (args.length %3E 0 && args%5B0%5D.equalsIgnoreCase(%22help%22)) %7B%0A            printHelpAndExit();%0A        %7D%0A%0A
         
@@ -658,11 +658,362 @@
  %7D%0A    %7D
+%0A%0A    private static void printHelpAndExit() %7B%0A        System.out.println(%22Start HTTP executor server in a random available port:%22 +%0A                %22%5Cn%5Ctjava -jar HTTPExecutor.jar%22);%0A        System.out.println(%22Start HTTP executor server in a given port:%22 +%0A                %22%5Cn%5Ctjava -jar -Dport=5555 HTTPExecutor.jar%22);%0A        System.exit(0);%0A    %7D
 %0A%7D%0A

Add help text