mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
chore: remove CLI flags all_files and show_memory_usage (#7059)
This commit is contained in:
@@ -59,9 +59,7 @@ export interface CliArgs {
|
|||||||
prompt: string | undefined;
|
prompt: string | undefined;
|
||||||
promptInteractive: string | undefined;
|
promptInteractive: string | undefined;
|
||||||
allFiles: boolean | undefined;
|
allFiles: boolean | undefined;
|
||||||
all_files: boolean | undefined;
|
|
||||||
showMemoryUsage: boolean | undefined;
|
showMemoryUsage: boolean | undefined;
|
||||||
show_memory_usage: boolean | undefined;
|
|
||||||
yolo: boolean | undefined;
|
yolo: boolean | undefined;
|
||||||
approvalMode: string | undefined;
|
approvalMode: string | undefined;
|
||||||
telemetry: boolean | undefined;
|
telemetry: boolean | undefined;
|
||||||
@@ -127,29 +125,11 @@ export async function parseArguments(settings: Settings): Promise<CliArgs> {
|
|||||||
description: 'Include ALL files in context?',
|
description: 'Include ALL files in context?',
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
.option('all_files', {
|
|
||||||
type: 'boolean',
|
|
||||||
description: 'Include ALL files in context?',
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
.deprecateOption(
|
|
||||||
'all_files',
|
|
||||||
'Use --all-files instead. We will be removing --all_files in the coming weeks.',
|
|
||||||
)
|
|
||||||
.option('show-memory-usage', {
|
.option('show-memory-usage', {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
description: 'Show memory usage in status bar',
|
description: 'Show memory usage in status bar',
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
.option('show_memory_usage', {
|
|
||||||
type: 'boolean',
|
|
||||||
description: 'Show memory usage in status bar',
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
.deprecateOption(
|
|
||||||
'show_memory_usage',
|
|
||||||
'Use --show-memory-usage instead. We will be removing --show_memory_usage in the coming weeks.',
|
|
||||||
)
|
|
||||||
.option('yolo', {
|
.option('yolo', {
|
||||||
alias: 'y',
|
alias: 'y',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
@@ -498,7 +478,7 @@ export async function loadCliConfig(
|
|||||||
settings.loadMemoryFromIncludeDirectories || false,
|
settings.loadMemoryFromIncludeDirectories || false,
|
||||||
debugMode,
|
debugMode,
|
||||||
question,
|
question,
|
||||||
fullContext: argv.allFiles || argv.all_files || false,
|
fullContext: argv.allFiles || false,
|
||||||
coreTools: settings.coreTools || undefined,
|
coreTools: settings.coreTools || undefined,
|
||||||
excludeTools,
|
excludeTools,
|
||||||
toolDiscoveryCommand: settings.toolDiscoveryCommand,
|
toolDiscoveryCommand: settings.toolDiscoveryCommand,
|
||||||
@@ -508,11 +488,7 @@ export async function loadCliConfig(
|
|||||||
userMemory: memoryContent,
|
userMemory: memoryContent,
|
||||||
geminiMdFileCount: fileCount,
|
geminiMdFileCount: fileCount,
|
||||||
approvalMode,
|
approvalMode,
|
||||||
showMemoryUsage:
|
showMemoryUsage: argv.showMemoryUsage || settings.showMemoryUsage || false,
|
||||||
argv.showMemoryUsage ||
|
|
||||||
argv.show_memory_usage ||
|
|
||||||
settings.showMemoryUsage ||
|
|
||||||
false,
|
|
||||||
accessibility: {
|
accessibility: {
|
||||||
...settings.accessibility,
|
...settings.accessibility,
|
||||||
screenReader,
|
screenReader,
|
||||||
|
|||||||
Reference in New Issue
Block a user