mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 21:50:52 +00:00
fix: settings in arg
This commit is contained in:
parent
706cdb2ac1
commit
a546e84887
2 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ function normalizeOutputFormat(
|
|||
return OutputFormat.TEXT;
|
||||
}
|
||||
|
||||
export async function parseArguments(): Promise<CliArgs> {
|
||||
export async function parseArguments(settings: Settings): Promise<CliArgs> {
|
||||
let rawArgv = hideBin(process.argv);
|
||||
|
||||
// hack: if the first argument is the CLI entry point, remove it
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ export async function main() {
|
|||
const settings = loadSettings();
|
||||
await cleanupCheckpoints();
|
||||
|
||||
let argv = await parseArguments();
|
||||
let argv = await parseArguments(settings.merged);
|
||||
|
||||
// Check for invalid input combinations early to prevent crashes
|
||||
if (argv.promptInteractive && !process.stdin.isTTY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue