make options keyword-only

This commit is contained in:
Maximilian Hils 2016-10-25 17:34:30 -07:00
parent 145c2892f7
commit 917c701562
4 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ DEFAULT_CLIENT_CIPHERS = "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA
class Options(optmanager.OptManager):
def __init__(
self,
*, # all args are keyword-only.
# TODO: rename to onboarding_app_*
app: bool = True,
app_host: str = APP_HOST,

View File

@ -203,6 +203,7 @@ class ConsoleState(state.State):
class Options(mitmproxy.options.Options):
def __init__(
self,
*, # all args are keyword-only.
eventlog: bool = False,
follow: bool = False,
intercept: bool = False,

View File

@ -18,6 +18,7 @@ class DumpError(Exception):
class Options(options.Options):
def __init__(
self,
*, # all args are keyword-only.
keepserving: bool = False,
filtstr: Optional[str] = None,
flow_detail: int = 1,

View File

@ -94,6 +94,7 @@ class WebState(state.State):
class Options(options.Options):
def __init__(
self,
*, # all args are keyword-only.
intercept: Optional[str] = None,
wdebug: bool = bool,
wport: int = 8081,