Merge pull request #2137 from imachug/patch-1
Fix preferring CLI argument over zeronet.conf
This commit is contained in:
commit
7742f2f5fb
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ class Config(object):
|
|||
key = section + "_" + key
|
||||
|
||||
if key == "open_browser": # Prefer config file value over cli argument
|
||||
if "--%s" % key in argv:
|
||||
while "--%s" % key in argv:
|
||||
pos = argv.index("--open_browser")
|
||||
del argv[pos:pos + 2]
|
||||
|
||||
|
|
Loading…
Reference in a new issue