def handle_label(self, label, **options): options = sanitize_command_options(options) if not hasattr(commands, 'sync_%s' % label): raise CommandError('"%s" is not a valid command.' % label) getattr(commands, 'sync_%s' % label)(**options)
def handle(self, **options): """ Command handler. """ reset_awards(**sanitize_command_options(options))
def handle(self, *args, **options): options = sanitize_command_options(options) reset_awards(**options)