[Python] What is `*args` in a Django BaseCommand handle function for?

Discussão em 'Python' iniciado por Stack, Junho 10, 2025.

  1. Stack

    Stack Membro Participativo

    The signature of BaseCommand.handle is handle(*args, **kwargs). The documentation example only uses the kwargs argument.

    Are there cases/ways to define command arguments/options such that they will appear as positional arguments to the handle function?

    Continue reading...

Compartilhe esta Página