private void scanPrivilege(String[] params, int slot) throws IllegalArgumentException {
		if (params.length <= slot) {
			throw new IllegalArgumentException("Missing desired privilege (admin or user)");
		}
		if (params[slot].equals("admin")) {
			adminPrivilegeRequested = true;
		}
		else if (params[slot].equals("user")) {
			adminPrivilegeRequested = false;
		}
		else {
			throw new IllegalArgumentException("Expecting privilege option (admin or user)");
		}
	}
Scan command-line for a particular privilege level. Administrator privileges are
requested with the exact String "admin", anything is a request for a read-only user 
@param params are the command-line arguments
@param slot is the position to retrieve the user name argument
@throws IllegalArgumentException the privilege parameter is missing
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/BSimControlLaunchable.java