# upgrade.legacy
# 打印传入的所有参数

Write-Host "upgrade.legacy called"
Write-Host "Argument count: $($args.Count)"

for ($i = 0; $i -lt $args.Count; $i++) {
    Write-Host "arg[$i] = $($args[$i])"
}

# 也可以单独按语义取（如果你约定了顺序）
# $version = $args[0]
# $dir     = $args[1]
# Write-Host "version = $version"
# Write-Host "dir     = $dir"
