(opt)
| 217 | |
| 218 | |
| 219 | def call_option(opt): |
| 220 | if not is_in_options(opt): |
| 221 | raise ValueError('Option not found') |
| 222 | for option in options: |
| 223 | if option['num'] == opt: |
| 224 | if 'func' in option: |
| 225 | option['func']() |
| 226 | else: |
| 227 | print('No function detected') |
| 228 | |
| 229 | |
| 230 | def execute_option(opt): |
no test coverage detected