def arg_strings(parsed_args, name=None):
    """A list of all strings for the named arg"""
    name = name or 'arg_strings'
    value = getattr(parsed_args, name, [])
    if isinstance(value, str):
        return [value]
    try:
        return [v for v in value if isinstance(v, str)]
    except TypeError:
        return []
def arg_strings ( parsed_args , name = None ) : name = name or 'arg_strings' value = getattr ( parsed_args , name , [ ] ) if isinstance ( value , str ) : return [ value ] try : return [ v for v in value if isinstance ( v , str ) ] except TypeError : return [ ]
A list of all strings for the named arg