private void validatePermission(String[] args, int i) {
		if (args.length < (i + 1) || CommandProcessor.parsePermission(args[i]) < 0) {
			displayUsage("Invalid usage, expected grant permission +r, +w or +a");
			System.exit(-1);
		}
	}
Validate repository permission arg (repository name to follow)
@param args command args
@param i argument index
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/ServerAdmin.java