mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #29392 -- Disallowed use of abbreviated forms of --settings and --pythonpath management command options.
This commit is contained in:
10
tests/user_commands/management/commands/set_option.py
Normal file
10
tests/user_commands/management/commands/set_option.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument('--set')
|
||||
|
||||
def handle(self, **options):
|
||||
self.stdout.write('Set %s' % options['set'])
|
||||
Reference in New Issue
Block a user