mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
parent
8353f4a55a
commit
13ad81eaff
@ -87,7 +87,7 @@ def run(
|
||||
arg_check.check()
|
||||
sys.exit(1)
|
||||
try:
|
||||
opts.confdir = args.confdir
|
||||
opts.set(*args.setoptions, defer=True)
|
||||
optmanager.load_paths(
|
||||
opts,
|
||||
os.path.join(opts.confdir, OPTIONS_FILE_NAME),
|
||||
@ -110,7 +110,6 @@ def run(
|
||||
if args.commands:
|
||||
master.commands.dump()
|
||||
sys.exit(0)
|
||||
opts.set(*args.setoptions, defer=True)
|
||||
if extra:
|
||||
opts.update(**extra(args))
|
||||
|
||||
|
@ -20,12 +20,6 @@ def common_options(parser, opts):
|
||||
action='store_true',
|
||||
help="Show all commands and their signatures",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confdir",
|
||||
type=str, dest="confdir", default=core.CONF_DIR,
|
||||
metavar="PATH",
|
||||
help="Path to the mitmproxy config directory"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--set",
|
||||
type=str, dest="setoptions", default=[],
|
||||
|
Loading…
Reference in New Issue
Block a user