import inspect
from typing import Dict
from typing import Any


def _build_int_option(parameter: inspect.Parameter) -> Dict[str, Any]:
    """Provides the argparse options for an integer option."""
    params = {
        "type": int,
        "default": None if parameter.default == parameter.empty else parameter.default,
    }

    return params