aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/optmanager.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-03-07 14:46:28 +1300
committerAldo Cortesi <aldo@nullcube.com>2017-03-07 14:46:28 +1300
commit10db254791480a35028554bc2821b9c8002e26ca (patch)
tree46eee6c996c7769c620c195319f0fa4495db61f8 /mitmproxy/optmanager.py
parentac3b0d69cc29b5469f6b4cc55af528f6266d42cf (diff)
downloadmitmproxy-10db254791480a35028554bc2821b9c8002e26ca.tar.gz
mitmproxy-10db254791480a35028554bc2821b9c8002e26ca.tar.bz2
mitmproxy-10db254791480a35028554bc2821b9c8002e26ca.zip
Remove less commonly used command-line options
We now have --set, so only options that really deserve it get a dedicated flag. I'm inclined to strip this back even more. Feel free to argue that YOUR favourite option deserves special treatment here.
Diffstat (limited to 'mitmproxy/optmanager.py')
-rw-r--r--mitmproxy/optmanager.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/mitmproxy/optmanager.py b/mitmproxy/optmanager.py
index eb56ef2d..e5277371 100644
--- a/mitmproxy/optmanager.py
+++ b/mitmproxy/optmanager.py
@@ -368,14 +368,13 @@ class OptManager:
if o.typespec == bool:
g = parser.add_mutually_exclusive_group(required=False)
g.add_argument(
- "--%s" % f,
- action="store_true",
+ "--no-%s" % f,
+ action="store_false",
dest=optname,
- help=o.help
)
g.add_argument(
- "--no-%s" % f,
- action="store_false",
+ "--%s" % f,
+ action="store_true",
dest=optname,
help=o.help
)