Using Thor, how can I remove a parameter for multiple tasks?

I have a CLI built using Thor. I need a global option for all but a few of my tasks. I added a global parameter by specifying class_option, but I cannot figure out how to remove this parameter from multiple tasks. If I use remove_class_option () in one of my tasks, then the global option is removed permanently and is no longer available.

Any help greatly appreciated!

+3
source share

All Articles