Instead of OptBool, I recommend using "Actions".  Here's an example:
https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/http_put.rb

Let me know what you think.