mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Fix verbosity mode
This commit is contained in:
parent
95c160ac13
commit
2edaca9141
@ -43,9 +43,12 @@ def process_options(parser, opts, args):
|
|||||||
if args.version:
|
if args.version:
|
||||||
print(debug.dump_system_info())
|
print(debug.dump_system_info())
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
if args.quiet or args.options or args.commands:
|
if args.quiet:
|
||||||
args.verbosity = 'error'
|
args.verbosity = 'error'
|
||||||
args.flow_detail = 0
|
args.flow_detail = 0
|
||||||
|
if args.verbose:
|
||||||
|
args.verbosity = 'debug'
|
||||||
|
args.flow_detail = 3
|
||||||
|
|
||||||
adict = {}
|
adict = {}
|
||||||
for n in dir(args):
|
for n in dir(args):
|
||||||
|
Loading…
Reference in New Issue
Block a user