def get_name_arg(argd, *argnames, default=None):
    """ Return the first argument value given in a docopt arg dict.
        When not given, return default.
    """
    val = None
    for argname in argnames:
        if argd[argname]:
            val = argd[argname].lower().strip()
            break
    return val if val else default