def handle(self, *args, **options): pages = options['pages'] if not args: raise CommandError('You must specify the search query.') query = u' '.join(args) es_search_cmd(query, pages)
def handle(self, *args, **options): pages = options['pages'] if not args: raise CommandError('You must specify the search query.') query = u' '.join(args) es_search_cmd(query, pages, FakeLogger(self.stdout))
def handle(self, *args, **options): logging.basicConfig(level=logging.INFO) pages = options['pages'] if not args: raise CommandError('You must specify the search query.') query = u' '.join(args) es_search_cmd(query, pages)