def METHOD_NAME(self, options: Values, args: List[str]) -> int:
    if not args:
        raise CommandError("Missing required argument (search query).")
    query = args
    pypi_hits = self.search(query, options)
    hits = transform_hits(pypi_hits)
    terminal_width = None
    if sys.stdout.isatty():
        terminal_width = shutil.get_terminal_size()[0]
    print_results(hits, terminal_width=terminal_width)
    if pypi_hits:
        return SUCCESS
    return NO_MATCHES_FOUND