Let getopt() print error messages about options.

This removes tsdumper2's error message in favour of getopt
native errors. Our message was always 'Unknown parameter'
which was not correct (most of the time) and very misleading.