def deduce_environment_variable(option_strings: list) -> str:
    """Deduce the environment name from the long option name of the parameter.

    Every parameter has a long named option and is last in the list. The last
    in the list will be assumed to resemble the environment variable.

    E.g. "-q", "--query_ip", "--query_ipv4" --> TID_QUERY_IPV4

    :param option_strings: list of options for this specific parameter
    :type option_strings: list
    :return: the generated environment variable
    :rtype: str
    """
    # Use the (last) named option of the parameter and designate it
    # as a valid environment variable.
    long_options = [opt for opt in option_strings if opt[0:2] == "--"]
    return f"TID_{long_options[-1][2:].upper()}"