mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
Fixed #10080 -- Slightly extended the fix made in r10401 by also taking command line options into account that don't have have a default set. Thanks, Claude Paroz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -9,8 +9,10 @@ class Command(BaseCommand):
|
||||
requires_model_validation = True
|
||||
|
||||
option_list =[
|
||||
make_option("-s", "--style", default="Rock'n'Roll")
|
||||
make_option("-s", "--style", default="Rock'n'Roll"),
|
||||
make_option("-x", "--example")
|
||||
]
|
||||
|
||||
def handle(self, *args, **options):
|
||||
example = options["example"]
|
||||
self.stdout.write("I don't feel like dancing %s." % options["style"])
|
||||
|
||||
Reference in New Issue
Block a user