mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -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 = {
|
export const profilesCommand: CommandModule = {
|
||||||
command: 'profiles <command>',
|
command: 'profiles <command>',
|
||||||
aliases: ['profile'],
|
|
||||||
describe: 'Manage Gemini CLI profiles.',
|
describe: 'Manage Gemini CLI profiles.',
|
||||||
builder: (yargs) =>
|
builder: (yargs) =>
|
||||||
yargs
|
yargs
|
||||||
|
|||||||
@@ -112,7 +112,6 @@ export async function parseArguments(
|
|||||||
.option('profiles', {
|
.option('profiles', {
|
||||||
alias: ['profile', 'P'],
|
alias: ['profile', 'P'],
|
||||||
type: 'string',
|
type: 'string',
|
||||||
nargs: 1,
|
|
||||||
global: true,
|
global: true,
|
||||||
description: 'The name of the profile to use for this session.',
|
description: 'The name of the profile to use for this session.',
|
||||||
})
|
})
|
||||||
@@ -298,6 +297,11 @@ export async function parseArguments(
|
|||||||
.option('accept-raw-output-risk', {
|
.option('accept-raw-output-risk', {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
description: 'Suppress the security warning when using --raw-output.',
|
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
|
// Register MCP subcommands
|
||||||
|
|||||||
Reference in New Issue
Block a user