class PythonShellParser {

	static List<String> parseRemote(String[] args) {
		if (args.length < 3) {
			System.err.println("Specifies the <hostname> <portnumber> in 'remote' mode");
			printRemoteHelp();
			System.exit(0);
		}
		String[] params = new String[args.length - 3];
		System.arraycopy(args, 3, params, 0, params.length);
		CommandLine commandLine = parse(REMOTE_OPTIONS, params);
		if (commandLine.hasOption(OPTION_HELP.getOpt())) {
			printRemoteHelp();
			System.exit(0);
		}
		String host = args[1];
		String port = args[2];
		List<String> options = new ArrayList<>();
		options.add(args[0]);
		options.add("-m");
		options.add(host + ":" + port);
		return options;
	}

}