Option template example

Use this example as a template to convert a MODES option of the form -y group=number into filter options -nnumber.

You add the following option template to the example in the Option definition with templates topic. See Option definition with templates for more information.

Options: MODES group\=\([1-9]\) = -n\l

So if a user gives the command lp -y group=4, the dpost command would include the option -n4.

For additional examples, run the following command:

/usr/sbin/lpfilter -f filter -l

where filter is the name of the factory-installed PostScript filters. (For a list of PostScript filters, see PostScript printers.)