From f15a6285613540e031b004b726799dd6edee5a27 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 5 Mar 2017 20:10:06 +1300 Subject: Start unifying options and the command-line: booleans This commit: - Adds a help field to options - Adds a function to generate parser definitions from options - Uses this to migrate all boolean flags over to the new system - Makes all booleans consistently follow the --foo/--not-foo convention There are a number of things left to be done here: - Argparse doesn't give us a nice way to format --foo --not-foo help. Click does, and moving to click is a goal down the track. - For now, we remove all short aliases. I want to re-evaluate these systematically once we have the new structure in place. --- tox.ini | 1 + 1 file changed, 1 insertion(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 4994b119..a9904e87 100644 --- a/tox.ini +++ b/tox.ini @@ -30,6 +30,7 @@ commands = mypy --ignore-missing-imports --follow-imports=skip \ mitmproxy/addons/ \ mitmproxy/addonmanager.py \ + mitmproxy/optmanager.py \ mitmproxy/proxy/protocol/ \ mitmproxy/log.py \ mitmproxy/tools/dump.py \ -- cgit v1.2.3