code: def is_required(action):
    '''_actions which are positional or possessing the `required` flag '''
    return not action.option_strings and not isinstance(action, _SubParsersAction) or action.required == Truf is_required(action):
    '''_actions which are positional or possessing the `required` flag '''
    return not action.option_strings and not isinstance(action, _SubParsersAction) or action.required == True
docs: _actions which are positional or possessing the `required` flag