Add option parsing.

Support help, header info, and record type count operations.