Demonstrates how to design an optical system using Synopsis CODE VR, a full-featured optical design program that has a command line interface. The complete design process (from lens definition to the description and evaluation of lens errors on to the improvement of lens performance) is illustrated using the program.