app/django/contrib/gis/management/base.py
changeset 323 ff1a9aa48cfd
equal deleted inserted replaced
322:6641e941ef1e 323:ff1a9aa48cfd
       
     1 from django.core.management.base import BaseCommand, CommandError
       
     2 
       
     3 class ArgsCommand(BaseCommand):
       
     4     """
       
     5     Command class for commands that take multiple arguments.
       
     6     """
       
     7     args = '<arg arg ...>'
       
     8 
       
     9     def handle(self, *args, **options):
       
    10         if not args:
       
    11             raise CommandError('Must provide the following arguments: %s' % self.args)
       
    12         return self.handle_args(*args, **options)
       
    13 
       
    14     def handle_args(self, *args, **options):
       
    15         raise NotImplementedError()