PageRenderTime 38ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/modeltests/user_commands/management/commands/dance.py

https://code.google.com/p/mango-py/
Python | 14 lines | 13 code | 1 blank | 0 comment | 0 complexity | f287ba667170be3f6f70291408fb799f MD5 | raw file
Possible License(s): BSD-3-Clause
  1. from optparse import make_option
  2. from django.core.management.base import BaseCommand
  3. class Command(BaseCommand):
  4. help = "Dance around like a madman."
  5. args = ''
  6. requires_model_validation = True
  7. option_list =[
  8. make_option("-s", "--style", default="Rock'n'Roll")
  9. ]
  10. def handle(self, *args, **options):
  11. self.stdout.write("I don't feel like dancing %s." % options["style"])