Load options from a file.
(self, path: mitmproxy.types.Path)
| 247 | |
| 248 | @command.command("options.load") |
| 249 | def options_load(self, path: mitmproxy.types.Path) -> None: |
| 250 | """ |
| 251 | Load options from a file. |
| 252 | """ |
| 253 | try: |
| 254 | optmanager.load_paths(ctx.options, path) |
| 255 | except (OSError, exceptions.OptionsError) as e: |
| 256 | raise exceptions.CommandError("Could not load options - %s" % e) from e |
| 257 | |
| 258 | @command.command("options.save") |
| 259 | def options_save(self, path: mitmproxy.types.Path) -> None: |