mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
fix: Honor DEBUG and CLI_TITLE environment variables (#3560)
This commit is contained in:
committed by
GitHub
parent
c0940a194e
commit
2ed1b378cb
@@ -186,7 +186,11 @@ export async function loadCliConfig(
|
||||
sessionId: string,
|
||||
): Promise<Config> {
|
||||
const argv = await parseArguments();
|
||||
const debugMode = argv.debug || false;
|
||||
const debugMode =
|
||||
argv.debug ||
|
||||
[process.env.DEBUG, process.env.DEBUG_MODE].some(
|
||||
(v) => v === 'true' || v === '1',
|
||||
);
|
||||
|
||||
const activeExtensions = filterActiveExtensions(
|
||||
extensions,
|
||||
|
||||
Reference in New Issue
Block a user