mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 08:31:14 -07:00
feat(cli): optimize profiles flag and resolve subcommand conflicts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user