public static void main (String [] args) {
        try {
            Options options = new Options();
            options.addOption("cp", "c_port", true, "Client port");
            options.addOption("h", "host", true, "Server host");
            options.addOption("p", "port", true, "Server port");
            CommandLineParser parser = new BasicParser();
            CommandLine cmd = parser.parse(options, args);
            if (cmd.hasOption('h')) {
                System.out.println(cmd.getOptionValue('h'));
            }
            if (cmd.hasOption('p')) {
                System.out.println(cmd.getOptionValue('p'));
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }