Sanitize error management in command-line options.