Upon --replace, suggest --modify-body / --modify-headers

Else the user sees
```
--replace is deprecated.
Please use `--replacements` instead.
mitmdump: error: unrecognized arguments: --replace
```
and then
```
mitmdump: error: unrecognized arguments: --replacements
--replacements is deprecated.
Please use `--modify-body` or `--modify-headers` instead.
```
and feels silly
This commit is contained in:
Joachim Breitner 2021-01-15 10:53:16 +01:00
parent ad3995f4f0
commit b290594d93
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ REPLACEMENTS = {
"--cert": "--certs",
"--insecure": "--ssl-insecure",
"-c": "-C",
"--replace": "--replacements",
"--replace": ["--modify-body", "--modify-headers"],
"--replacements": ["--modify-body", "--modify-headers"],
"-i": "--intercept",
"-f": "--view-filter",