Add has_switch? method to executable.