def handle(self, *args, **options):
        """Command handle."""
        verbosity = int(options['verbosity'])
        skip_mapping = options['skip_mapping']

        if self.has_filter(options):
            self.filter_indices(options, verbosity, skip_mapping=skip_mapping)
        else:
            # Process all indices.
            index_builder.delete(skip_mapping=skip_mapping)
def handle ( self , * args , ** options ) : verbosity = int ( options [ 'verbosity' ] ) skip_mapping = options [ 'skip_mapping' ] if self . has_filter ( options ) : self . filter_indices ( options , verbosity , skip_mapping = skip_mapping ) else : index_builder . delete ( skip_mapping = skip_mapping )
Command handle.