Add optional options hashref as first argument, e.g. to include program name in error messages