ospcat --version (return code: 0)
ospcat:I: "OpenSP" version "1.5.2"
ospcat --help (return code: 0)
Usage: ospcat [OPTION] SYSID...
Short options need the same arguments as their long forms.
-b, --bctf=NAME Use bctf NAME for output.
-f, --error-file=FILE Append error messages to file FILE.
-v, --version Display the program version.
-h, --help Show this help text.
-c, --catalog=SYSID Use catalog SYSID.
-C, --catalogs Arguments are catalogs, use DOCUMENT entry.
-D, --directory=DIRECTORY Search files in directory DIRECTORY.
-R, --restricted Restrict file reading (for use in Web apps).
-P, --public-id=LITERAL Print the effective system id for the public id LITERAL.
-S, --system-id=LITERAL Print the effective system id for system id LITERAL.
-p, --parameter-entity=NAME Print the effective system id for parameter entity NAME.
-d, --doctype=NAME Print the effective system id for the doctype NAME.
-l, --linktype=NAME Print the effective system id for the linktype NAME.
-e, --entity=NAME Print the effective system id for entity NAME.
-n, --notation=NAME Print the effective system id for notation NAME.
-s, --declaration=NAME Print the effective system id for the SGML declaration for doctype NAME.
ospcat prints effective system identifiers found in the catalogs on the
standard output. It doesn't check that the system identifiers correspond
to actual files. The return value is 0 if the last system identifier was
successfully created and 1 otherwise.