Fixed getopt error reporting.