logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

opensearch-discover - Find an OpenSearch link from a given URL.

Author

       Ian Beckwith <ianb@erislabs.net>

Bugs

       None known. Please report any found to ianb@erislabs.net

Dependencies

       Requires modules from libwww-perl and HTML::Parser (Debian package libhtml-parser-perl).

Description

       Loads the given URL, searches it for a link to an OpenSearch description URL, and prints that URL.

Diagnostics

       On success, prints the address of the OpenSearch description file and returns 0.

       If it cannot load the given URL, it returns 1.

       If the given URL does not contain a link to an OpenSearch description file, it returns 2.

       If required perl modules are missing, it returns 3.

Name

       opensearch-discover - Find an OpenSearch link from a given URL.

Options

-q, --quiet
           Give  no  output  on  errors.  In  this  case,  consult  the  exit  code  to  determine  errors  (See
           "DIAGNOSTICS").

       -v, --verbose
           Verbose: display titles with links. Combine with -a to see all available searches

       -tTITLE, --title=TITLE
           Only display links matching TITLE, a case-insensitive perl regular expression. For example,  -tbook
           would match BookSearch, and -tb.*k would match BookSearch or BabySpringbok.

       -1, --first
           Only display first (matching) link. This is the default.

       -a, --all
           Display all (matching) links.

       -h, --help
           Display a short help message.

See Also

opensearch(1), opensearch-genquery(1), surfraw(1), WWW::OpenSearch(3pm), <http://www.opensearch.org/>

Synopsis

opensearch-discover [-q] [-v] [-tTITLE] [-1|-a] [-h]  [URL]

See Also