Error on unknown arguments passed to --activate (#1313)

See #1312
This commit is contained in:
Sam Clegg
2023-12-08 10:30:37 -08:00
committed by GitHub
parent ef77dcc2c0
commit cc1b3efbd3
2 changed files with 3 additions and 5 deletions

View File

@@ -3047,7 +3047,6 @@ def main(args):
print('') print('')
tools_to_activate = currently_active_tools() tools_to_activate = currently_active_tools()
args = [x for x in args if not x.startswith('--')]
for arg in args: for arg in args:
tool = find_tool(arg) tool = find_tool(arg)
if tool is None: if tool is None:

View File

@@ -15,8 +15,7 @@ try {
& "$repo_root/emsdk.ps1" install latest & "$repo_root/emsdk.ps1" install latest
$esc = '--%' & "$repo_root/emsdk.ps1" activate latest $env:PERMANENT_FLAG $env:SYSTEM_FLAG
& "$repo_root/emsdk.ps1" activate latest $esc $env:PERMANENT_FLAG $env:SYSTEM_FLAG
if ($env:SYSTEM_FLAG) { if ($env:SYSTEM_FLAG) {
$env_type = "Machine" $env_type = "Machine"