public static void main(String[] args) {
		ProcessManager pm;
		if (args.length == 2 && args[0].equals("-p")) {
			pm = new ProcessManager(null, Integer.parseInt(args[1]));
			pm.startMaster();
			System.out.println(pm.port);
		} else if (args.length == 4 && args[0].equals("-m")
				&& args[2].equals("-p")) {
			pm = new ProcessManager(args[1], Integer.parseInt(args[3]));
			pm.startSlave();
			System.out.println(pm.port);
		} else {
			printUsage();
		}
	}