def is_optional(action):
    """
    _actions either not possessing the `required` flag or implicitly optional
    through `nargs` being '*' or '?'
    """
    return not action.required or action.nargs in ['*', '?']
