From 648ab84b2118cdae16b9a9ccd41341d2114f84db Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Thu, 28 Aug 2025 16:22:59 -0700 Subject: [PATCH] feat(cli): deprecate redundant CLI flags (#7360) --- packages/cli/src/config/config.ts | 45 ++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index b36da1a0af..873211d40a 100755 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -227,7 +227,50 @@ export async function parseArguments(settings: Settings): Promise { description: 'Enable screen reader mode for accessibility.', default: false, }) - + .deprecateOption( + 'telemetry', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'telemetry-target', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'telemetry-otlp-endpoint', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'telemetry-otlp-protocol', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'telemetry-log-prompts', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'telemetry-outfile', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'show-memory-usage', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'sandbox-image', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'proxy', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'checkpointing', + 'Use settings.json instead. This flag will be removed in a future version.', + ) + .deprecateOption( + 'all-files', + 'Use @ includes in the application instead. This flag will be removed in a future version.', + ) .check((argv) => { if (argv.prompt && argv['promptInteractive']) { throw new Error(