mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
make options keyword-only
This commit is contained in:
parent
145c2892f7
commit
917c701562
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user