Click's option decorator can take a cls= argument, which allows that class to parse arbitrary arguments from the decorator.