Files
2024-12-29 03:44:52 +01:00

19 lines
478 B
Python

from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Print hello world.'
def add_arguments(self, parser):
# Argumento nomeado
parser.add_argument(
'--awards', '-a',
action='store_true',
help='Help of awards options.'
)
def handle(self, *args, **options):
self.stdout.write('Hello world.')
if options['awards']:
self.stdout.write('Awards')