feat(cli): optimize profiles flag and resolve subcommand conflicts

This commit is contained in:
Rahul Kamat
2026-03-10 16:40:05 -07:00
parent 25ee5327f3
commit 7f5c805d9d
2 changed files with 5 additions and 2 deletions

View File

@@ -13,7 +13,6 @@ import { initializeOutputListenersAndFlush } from '../gemini.js';
export const profilesCommand: CommandModule = {
command: 'profiles <command>',
aliases: ['profile'],
describe: 'Manage Gemini CLI profiles.',
builder: (yargs) =>
yargs

View File

@@ -112,7 +112,6 @@ export async function parseArguments(
.option('profiles', {
alias: ['profile', 'P'],
type: 'string',
nargs: 1,
global: true,
description: 'The name of the profile to use for this session.',
})
@@ -298,6 +297,11 @@ export async function parseArguments(
.option('accept-raw-output-risk', {
type: 'boolean',
description: 'Suppress the security warning when using --raw-output.',
})
.option('profiles', {
alias: ['profile', 'P'],
type: 'string',
description: 'The name of the profile to use for this session.',
}),
)
// Register MCP subcommands