def handle(self, *labels, **options):
        if len(labels) != 1:
            raise CommandError('You must specify an %s.' % self.label)
        action = labels[0]
        if action not in self.ACTIONS:
            raise CommandError('%s "%s" must be one of: %s.' %
                               (self.label.capitalize(),
                                action,
                                ", ".join(self.ACTIONS)))
        return super(Command, self).handle(*labels, **options)
dataset/ETHPy150Open e-loue/django-lean/django_lean/lean_segments/management/commands/lean_segments.py/Command.handle/original