diff --git a/mitmproxy/cmdline.py b/mitmproxy/cmdline.py index d46051a23..551fffa07 100644 --- a/mitmproxy/cmdline.py +++ b/mitmproxy/cmdline.py @@ -323,7 +323,7 @@ def basic_options(parser): def proxy_modes(parser): - group = parser.add_argument_group("Proxy Modes").add_mutually_exclusive_group() + group = parser.add_argument_group("Proxy Modes") group.add_argument( "-R", "--reverse", action="store", diff --git a/test/mitmproxy/test_proxy.py b/test/mitmproxy/test_proxy.py index 49c9c9093..cd24fc9fb 100644 --- a/test/mitmproxy/test_proxy.py +++ b/test/mitmproxy/test_proxy.py @@ -96,7 +96,7 @@ class TestProcessProxyOptions: self.assert_err("expected one argument", "--upstream-auth") self.assert_err("Invalid upstream auth specification", "--upstream-auth", "test") - self.assert_err("not allowed with", "-R", "http://localhost", "-T") + self.assert_err("mutually exclusive", "-R", "http://localhost", "-T") def test_socks_auth(self): self.assert_err("Proxy Authentication not supported in SOCKS mode.", "--socks", "--nonanonymous")