def defaultargs(options):
    """Produce a dictionary of default arguments from a list of options
    tuples

    Parameter
        tuple[] - (flag, default, docstring) tuples describing each flag

    Return
        dict    - {flag: default} for each option in input
    """
    config = {}
    for longname, default, doc in options:
        config[longname] = default
    return config