improve CommandLineOptions

* optimization
* more verbose error messages
* add methods to check whether options have actually been
  set via command line
CommandLineOptions: return false on failure in readOptions()
debugger: make better use of command-line options

* quit on command-line option error
* quit on 'count' argument out of range
debugger: quit on failure to open file for reading or writing