'By convention set by django developers, this method actually executes command\'s actions.
So, there could be no better docstring than emphasize this once again.'

def handle(self, *args, **options):

    if ((len(args) == 0) and (not options.get('all', False))):
        raise CommandError(u'reindex_library    requires    one    or    more    arguments:    <library_id>')
    store = modulestore()
    if options.get('all', False):
        if query_yes_no(self.CONFIRMATION_PROMPT, default='no'):
            library_keys = [library.location.library_key.replace(branch=None) for library in store.get_libraries()]
        else:
            return
    else:
        library_keys = map(self._parse_library_key, args)
    for library_key in library_keys:
        LibrarySearchIndexer.do_library_reindex(store, library_key)
