Overlays default flag values from the database colon file with override values from the command line.
None (linked with the pioformat formatter driver)
The piogetopt subroutine should be used by a printer formatter's setup routine to perform these three tasks:
The piogetopt subroutine is supplied by the formatter driver.
The database attribute names for flags with integer arguments must have previously been defined to the formatter driver with the piogetvals subroutine. Based on the information that was provided to the piogetvals subroutine, the piogetopt subroutine takes these three actions:
Item | Description |
---|---|
argc | Same as the argc parameter received by the formatter's setup routine when it was called by the formatter driver. |
argv | Same as the argv parameter received by the formatter's setup routine when it was called by the formatter driver. |
A return value of 0 indicates successful completion. If the piogetopt subroutine detects an error, it issues an error message and terminates the print job.