diff --git a/packages/cli/src/commands/generate.ts b/packages/cli/src/commands/generate.ts index e9702aa8..a3337dde 100644 --- a/packages/cli/src/commands/generate.ts +++ b/packages/cli/src/commands/generate.ts @@ -536,6 +536,9 @@ ${trustScore.warnings.length > 0 ? `\nWarnings:\n${trustScore.warnings.map((w) = let targetAgents: string[]; if (this.agents) { + if (process.argv.includes('--agents')) { + console.warn('Warning: --agents is deprecated, use --agent instead (--agents will be removed in v2.0)'); + } targetAgents = this.agents.split(',').map((a) => a.trim()); } else { const agentOptions = [ diff --git a/packages/cli/src/commands/manifest.ts b/packages/cli/src/commands/manifest.ts index ab1a4af2..5d9ba071 100644 --- a/packages/cli/src/commands/manifest.ts +++ b/packages/cli/src/commands/manifest.ts @@ -159,6 +159,9 @@ export class ManifestAddCommand extends Command { } if (this.agents) { + if (process.argv.includes('--agents')) { + console.warn('Warning: --agents is deprecated, use --agent instead (--agents will be removed in v2.0)'); + } options.agents = this.agents.split(',').map(s => s.trim()); }