def METHOD_NAME(cls):
    workspace_type = fileoperations.get_workspace_type(None)
    is_platform_workspace_only_command = cls.Meta.__dict__.get(
        'is_platform_workspace_only_command'
    )
    requires_directory_initialization = cls.Meta.__dict__.get(
        'requires_directory_initialization'
    )
    if '--modules' in sys.argv:
        pass
    elif '--help' in sys.argv:
        pass
    elif cls.__name__ == 'PlatformListController' or cls.__name__ == 'EBPListController':
        pass
    elif requires_directory_initialization and not workspace_type:
        raise NotInitializedError(strings['exit.notsetup'])
    elif is_platform_workspace_only_command:
        if Constants.WorkSpaceTypes.APPLICATION == workspace_type:
            raise ApplicationWorkspaceNotSupportedError(
                strings['exit.applicationworkspacenotsupported']
            )