Add command line processing.

Add getopt processing. Use command line options to configure the
timeline output and handle error messages for wrong arguments.