docs: def lib(ctx,
          filepath=None,
          extra=False,
          bootstrap=False,
          cache=False,
          reveal=False,
          show=False,
          save=False,
          directory=False):
      """
      LIBRARY: work with a local library of RDF models.
      """
      verbose = ctx.obj['VERBOSE']
      sTime = ctx.obj['STIME']
      print_opts = {
          'labels': verbose,
      }
      DONE_ACTION = False
  
      if bootstrap:
          DONE_ACTION = True
          action_bootstrap(verbose)
          printDebug("Tip: you can now load an ontology by typing `ontospy lib -s`",
                     "important")
          # raise SystemExit(1)
  
      elif cache:
          DONE_ACTION = True
          action_cache_reset()
  
      elif directory:
          if not filepath:
              printDebug("Please specify a new directory for the local library.",
                         'important')
              sys.exit(0)
          else:
              _location = filepath[0]
              if _location.endswith("/"):
                  # dont need the final slash
                  _location = _location[:-1]
              output = action_update_library_location(_location)
              if output:
                  printDebug(
                      "Note: no files have been moved or deleted (this has to be done manually)",
                      "comment")
                  printDebug("----------\n" + "New location: '%s'" % _location,
                             "important")
  
              else:
                  printDebug(
                      "----------\n" + "Please specify an existing folder path.",
                      "important")
              raise SystemExit(1)
  
      elif reveal:
          action_reveal_library()
          raise SystemExit(1)
  
      elif save:
          if filepath:
              DONE_ACTION = True
              action_import(filepath[0], verbose)
          else:
              click.secho(
                  "You provided no arguments - please specify what to save..",
                  fg='white')
          raise SystemExit(1)
  
      elif show:
          click.secho("Local library => '%s'" % get_home_location(), fg='white')
          filename = action_listlocal(all_details=False)
  
          if filename:
              DONE_ACTION = True
              g = get_pickled_ontology(filename)
              if not g:
                  g = do_pickle_ontology(filename)
              shellPrintOverview(g, print_opts)
  
      else:
          click.echo(ctx.get_help())
          return
  
      if DONE_ACTION:
          eTime = time.time()
          tTime = eTime - sTime
          printDebug("\n-----------\n" + "Time:	   %0.2fs" % tTime, "comment")
      else:
          printDebug("Goodbye", "comment")