Remove the confdir argument

Closes #3266
This commit is contained in:
Pierre Gordon 2019-04-09 15:23:07 -05:00
parent 8353f4a55a
commit 13ad81eaff
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=[],