/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.belocraft;

import com.belocraft.network.Runner;
import java.io.IOException;

/**
 *
 * @author Eugene
 */
public class Main {

    /**
     * @param args the command line arguments
     * @throws java.io.IOException
     */
    public static void main(String[] args) throws IOException {
        Runner runner;

        String adress = "127.0.0.1";
        int port = 25;

        if (args.length > 1) {
            adress = args[0];
            port = Integer.parseInt(args[1]);
        }else
        {
            System.out.println("Run with standart constants " +adress+":"+port);
        }
        
        runner = new Runner();

        if (runner.connect(adress, port)) {
            runner.run();
        }
    }
}
@@ -476,16 +476,27 @@
 xception
+, Exception
  %7B%0A     
@@ -695,103 +695,154 @@
    %7D
-else%0A        %7B%0A            System.out.println(%22Run with standart constants %22 +
+%0A        if (args.length == 1)%0A        %7B%0A            throw new Exception(%22Not enougth parametrs, need two parametrs 
 adress
-+%22:%22+
+ and 
 port
+%22
 );
+            
 %0A   

Add exception in strategy from not enought args