Skip to content

How to pass Command class attributes to click? #58

@ulgens

Description

@ulgens

I need to customize required system checks for a management command created with django-click.

https://docs.djangoproject.com/en/5.2/howto/custom-management-commands/#django.core.management.BaseCommand.requires_system_checks

But it seems djclick.command() has no interface to pass those kinds of arguments. I checked the source code and the only this I could find that is slightly related was

        # Remove internal Django command handling machinery
        kwargs.pop("skip_checks", None)

Which was introduced in the very first commit bd0b8a0 and I couldn't understand why it was done.

Is this a missing feature, or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions