forked from platformio/platformio-core
Fixed an issue when --upload-port CLI flag does not override declared upload_port option in "platformio.ini"
This commit is contained in:
1 parent
c671a8e235
commit
883a97a38c
3 files changed
+4
-1
No files matched your search
@@ -32,7 +32,8 @@ def GetProjectOption(env, option, default=None):
|
||||
def LoadProjectOptions(env):
|
||||
for option, value in env.GetProjectOptions():
|
||||
option_meta = ProjectOptions.get("env." + option)
|
||||
if not option_meta or not option_meta.buildenvvar:
|
||||
if (not option_meta or not option_meta.buildenvvar
|
||||
or option_meta.buildenvvar in env):
|
||||
continue
|
||||
env[option_meta.buildenvvar] = value
|
||||
|
||||
|
||||
Reference in new issue
Block a user