Skip to content

Commit 648ab84

Browse files
feat(cli): deprecate redundant CLI flags (google-gemini#7360)
1 parent a63e678 commit 648ab84

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

packages/cli/src/config/config.ts

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,50 @@ export async function parseArguments(settings: Settings): Promise<CliArgs> {
227227
description: 'Enable screen reader mode for accessibility.',
228228
default: false,
229229
})
230-
230+
.deprecateOption(
231+
'telemetry',
232+
'Use settings.json instead. This flag will be removed in a future version.',
233+
)
234+
.deprecateOption(
235+
'telemetry-target',
236+
'Use settings.json instead. This flag will be removed in a future version.',
237+
)
238+
.deprecateOption(
239+
'telemetry-otlp-endpoint',
240+
'Use settings.json instead. This flag will be removed in a future version.',
241+
)
242+
.deprecateOption(
243+
'telemetry-otlp-protocol',
244+
'Use settings.json instead. This flag will be removed in a future version.',
245+
)
246+
.deprecateOption(
247+
'telemetry-log-prompts',
248+
'Use settings.json instead. This flag will be removed in a future version.',
249+
)
250+
.deprecateOption(
251+
'telemetry-outfile',
252+
'Use settings.json instead. This flag will be removed in a future version.',
253+
)
254+
.deprecateOption(
255+
'show-memory-usage',
256+
'Use settings.json instead. This flag will be removed in a future version.',
257+
)
258+
.deprecateOption(
259+
'sandbox-image',
260+
'Use settings.json instead. This flag will be removed in a future version.',
261+
)
262+
.deprecateOption(
263+
'proxy',
264+
'Use settings.json instead. This flag will be removed in a future version.',
265+
)
266+
.deprecateOption(
267+
'checkpointing',
268+
'Use settings.json instead. This flag will be removed in a future version.',
269+
)
270+
.deprecateOption(
271+
'all-files',
272+
'Use @ includes in the application instead. This flag will be removed in a future version.',
273+
)
231274
.check((argv) => {
232275
if (argv.prompt && argv['promptInteractive']) {
233276
throw new Error(

0 commit comments

Comments
 (0)