Made error message for invalid command line option a bit more general.