def arg_range(nums : list) -> list:
    """
    Parameters
    ----------
    nums: list
        List of strings to convert to a list of integers.
        Elements may have the format "1-10" (representing a range of integer) 
        or "5" (representing a single integer).
    
    Returns
    -------
    list
        List of interges.
    """
    # Convert list of strings to list of integers.
    out = []
    for num in nums:
        if "-" in num:
            start, end = map(int, num.split("-"))
            for i in range(start, end + 1):
                out.append(i)
        else:
            out.append(int(num))
    return out