Save options to a file.
(self, path: mitmproxy.types.Path)
| 257 | |
| 258 | @command.command("options.save") |
| 259 | def options_save(self, path: mitmproxy.types.Path) -> None: |
| 260 | """ |
| 261 | Save options to a file. |
| 262 | """ |
| 263 | try: |
| 264 | optmanager.save(ctx.options, path) |
| 265 | except OSError as e: |
| 266 | raise exceptions.CommandError("Could not save options - %s" % e) from e |
| 267 | |
| 268 | @command.command("options.reset") |
| 269 | def options_reset(self) -> None: |