Adds support for option with custom extensions