get rid of really old exception getopt.error
renamed to have_error
use err.strerror
use strerror()
catch exceptions 'as' variable
catch exceptions with 'as' keyword