private static void addCommand(ArrayList<String> cmdList, String[] args, int argOffset,
			int argCnt, String pwdHash) {
		StringBuilder buf = new StringBuilder();
		for (int i = 0; i < argCnt; i++) {
			if (i > 0) {
				buf.append(' ');
			}
			buf.append(args[argOffset + i]);
		}
		if (pwdHash != null) {
			buf.append(' ');
			buf.append(pwdHash);
		}
		cmdList.add(buf.toString());
	}
Add command args as next command in cmdList.
@param cmdList command list
@param args command line args
@param argOffset args index of command start
@param argCnt number of args to consume
@param pwdHash optional password has to append to end of command
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/ServerAdmin.java