Merge pull request #3516 from pierlon/remove-confdir-argument

Remove the confdir argument
This commit is contained in:
Maximilian Hils 2019-07-17 23:59:40 +02:00 committed by GitHub
commit 2e30c4073d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -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))

View File

@ -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=[],