def _set_argument(args, option_pair, hist=None):
    """
    If the value isn't set in the args namespace, check history if a
    record exists of it and ask user if most recent use or new value should
    be used.

    :param args:
    :param option_pair:
    :param hist:
    :return:
    """
    hist = hist or {}
    while not getattr(args, option_pair[0]):
        histlist = hist.get(option_pair[0], None)
        if histlist is None:
            last = ''
        else:
            last = histlist[-1]
        print(option_pair[1])
        print('[{}]'.format(last))
        attr = input()
        if attr or last:
            setattr(args, option_pair[0], attr or last)
            break
