feat(cli): integrate profile support into subcommands and fix MCP loading

This commit is contained in:
Rahul Kamat
2026-03-10 16:12:57 -07:00
parent 949392b384
commit a15ea53ff8
8 changed files with 222 additions and 82 deletions
+7 -7
View File
@@ -109,6 +109,13 @@ export async function parseArguments(
.usage(
'Usage: gemini [options] [command]\n\nGemini CLI - Defaults to interactive mode. Use -p/--prompt for non-interactive (headless) mode.',
)
.option('profile', {
alias: ['profiles', 'P'],
type: 'string',
nargs: 1,
global: true,
description: 'The name of the profile to use for this session.',
})
.option('debug', {
alias: 'd',
type: 'boolean',
@@ -146,13 +153,6 @@ export async function parseArguments(
type: 'boolean',
description: 'Run in sandbox?',
})
.option('profile', {
alias: ['profiles', 'P'],
type: 'string',
nargs: 1,
description: 'The name of the profile to use for this session.',
})
.option('yolo', {
alias: 'y',
type: 'boolean',