|
|
@@ -1,6 +1,7 @@
|
|
|
-param([Parameter(ValueFromRemainingArguments=$true)][string[]]$Arguments)
|
|
|
+# Keep native arguments verbatim, including the runner's literal -- separator.
|
|
|
+# Advanced parameter binding can consume options belonging to the child command.
|
|
|
$ErrorActionPreference='Stop'
|
|
|
[Console]::OutputEncoding = New-Object System.Text.UTF8Encoding($false)
|
|
|
$OutputEncoding = [Console]::OutputEncoding
|
|
|
-& python (Join-Path (Split-Path -Parent $PSScriptRoot) 'remote_job.py') @Arguments
|
|
|
+& python (Join-Path (Split-Path -Parent $PSScriptRoot) 'remote_job.py') @args
|
|
|
exit $LASTEXITCODE
|