fix: settings in arg

This commit is contained in:
LaZzyMan 2026-01-19 11:18:01 +08:00
parent 706cdb2ac1
commit a546e84887
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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) {