docs: def cli(ctx, hpo_term, check_terms, output, p_value_limit, verbose, username, 
          password, to_json):
      "Give hpo terms either on the form 'HP:0001623', or '0001623'"    
      loglevel = LEVELS.get(min(verbose, 3))
      configure_stream(level=loglevel)
      
      if not hpo_term:
          logger.info("Please specify at least one hpo term with '-t/--hpo_term'.")
          ctx.abort()
  
      if not (username and password):
          logger.info("Please specify username with -u and password with -p.")
          logger.info("Contact sebastian.koehler@charite.de.")
          ctx.abort()
      
      hpo_list = []
      for term in hpo_term:
          if len(term.split(':')) < 2:
              term = ':'.join(['HP', term])
          hpo_list.append(term)
      
      logger.info("HPO terms used: {0}".format(','.join(hpo_list)))
      
      if check_terms:
          for term in hpo_list:
              try:
                  if not validate_term(username, password, term):
                      logger.info("HPO term : {0} does not exist".format(term))
                  else:
                      logger.info("HPO term : {0} does exist!".format(term))
              except RuntimeError as err:
                  click.echo(err)
                  ctx.abort()
          ctx.abort()
      else:
          try:
              for result in query(username, password, *hpo_list):
                  if to_json:
                      click.echo(json.dumps(result))
                  else:
                      print_string = "{0}\t{1}:{2}\t{3}\t{4}".format(
                          result['p_value'], 
                          result['disease_source'],
                          result['disease_nr'],
                          result['description'],
                          ','.join(result['gene_symbols'])
                      )
                      p_value = result['p_value']
                      if p_value <= p_value_limit:
                          click.echo(print_string)
                  
          except RuntimeError as e:
              click.echo(e)
              ctx.abort()