(opt)
| 243 | """ |
| 244 | |
| 245 | def callback(opt): |
| 246 | # We're now outside of the call context... |
| 247 | repl = [arg.replace("{choice}", opt) for arg in args] |
| 248 | try: |
| 249 | self.master.commands.call_strings(cmd, repl) |
| 250 | except exceptions.CommandError as e: |
| 251 | logger.error(str(e)) |
| 252 | |
| 253 | self.master.overlay(overlay.Chooser(self.master, prompt, choices, "", callback)) |
| 254 |