The foomatic-ppd-options program reads the specified PPD files or stdin and decodes the PPD file to produce a list of options. This is really just a text based version of other print configuration tools.
The output format consists of a set of lines, each starting with a keyword, followed by a set of options and the default value. For example:
makemodel = Tektronix Phaser 350 Foomatic/Postscript (recommended) name=PageSize; default=Letter; options=Letter (US Letter), \ A4 (A4), 11x17 (11x17), A3 (A3), A5 (A5), B5 (B5 \(JIS\)),... name=PageRegion; default=Letter; options=Letter (US Letter), A4 (A4), ...
Each option starts with the name tag, followed by a default value (if any), followed by the set of options and a comment describing them. Punctuation in the comment is escaped.