Dont use logger in options parsing, fixes #1335