fix: preserve tran script command separator
This commit is contained in:
@@ -161,8 +161,12 @@ export function extractRemoteCliOptions(argv: string[]): RemoteCliOptions {
|
||||
for (let index = 0; index < argv.length; index += 1) {
|
||||
const arg = argv[index] ?? "";
|
||||
if (arg === "--") {
|
||||
rest.push(...argv.slice(index + 1));
|
||||
break;
|
||||
if (rest.length === 0) {
|
||||
rest.push(...argv.slice(index + 1));
|
||||
break;
|
||||
}
|
||||
rest.push(arg);
|
||||
continue;
|
||||
}
|
||||
if (hostOptions.has(arg)) {
|
||||
options.host = requiredValue(argv, index, arg);
|
||||
|
||||
Reference in New Issue
Block a user