/django/contrib/gis/management/base.py
https://code.google.com/p/mango-py/ · Python · 15 lines · 9 code · 3 blank · 3 comment · 1 complexity · 31a7cf05b44553cfdfa8cb0b8982d117 MD5 · raw file
- from django.core.management.base import BaseCommand, CommandError
- class ArgsCommand(BaseCommand):
- """
- Command class for commands that take multiple arguments.
- """
- args = '<arg arg ...>'
- def handle(self, *args, **options):
- if not args:
- raise CommandError('Must provide the following arguments: %s' % self.args)
- return self.handle_args(*args, **options)
- def handle_args(self, *args, **options):
- raise NotImplementedError()