Skip to content

Commit c8e8581

Browse files
authored
Merge pull request #1758 from QwenLM/mingholy/fix/fork-mode-ipc
Fix CLI argument parsing for /dist/cli/cli.js entry point
2 parents e48c538 + 07cd73c commit c8e8581

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/cli/src/config/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ export async function parseArguments(): Promise<CliArgs> {
166166
if (
167167
rawArgv.length > 0 &&
168168
(rawArgv[0].endsWith('/dist/qwen-cli/cli.js') ||
169-
rawArgv[0].endsWith('/dist/cli.js'))
169+
rawArgv[0].endsWith('/dist/cli.js') ||
170+
rawArgv[0].endsWith('/dist/cli/cli.js'))
170171
) {
171172
rawArgv = rawArgv.slice(1);
172173
}

0 commit comments

Comments
 (0)