So whatever we do here would not work with Jenkins regarding optional parameters. Ether if it is a boolean or a string it would have the same effect. We would pass in a broken option. I think the solution with the string is fine, but again you still haven't updated the code regarding the above comment. Please be more careful before asking for another review.