Should I pass switches in my code or in a CFG file?
Switches that specify the input and output formats are good to hard code as well as any switches that will never need to be changed. Switches that could possibly change should be placed in a CFG file. JetPCL reads the CFG file first and then the command line. Command line switches override similar switches found in the CFG file. Because of this, it is best not to hard code anything that might want to be changed while the application is in the field. For example, it is possible for a technical support person to help a user that is experiencing certain types of errors by putting a switch in the CFG file. This is true as long as a conflicting switch setting is not a hard coded in the application.