1
0
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:
Jannis Leidel
2012-02-09 18:56:41 +00:00
parent b46d90c63a
commit 538257b4ae
2 changed files with 9 additions and 4 deletions

View File

@@ -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"])