Adding a validateOptions function and warning/exiting on invalid options