diff options
Diffstat (limited to 'packages/cli/src/config')
| -rw-r--r-- | packages/cli/src/config/config.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index f02fea98..28e755e8 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -35,7 +35,7 @@ export function loadConfig(): Config { loadEnvironment(); const argv = parseArguments(); return new Config( - process.env.GEMINI_API_KEY || "", + process.env.GEMINI_API_KEY || '', argv.model || process.env.GEMINI_API_KEY || DEFAULT_GEMINI_MODEL, argv.target_dir || process.cwd(), ); @@ -66,15 +66,13 @@ function parseArguments(): CliArgs { }) .help() .alias('h', 'help') - .strict() // Keep strict mode to error on unknown options - .argv; + .strict().argv; // Keep strict mode to error on unknown options // Cast to the interface to ensure the structure aligns with expectations // Use `unknown` first for safer casting if types might not perfectly match return argv as unknown as CliArgs; } - function findEnvFile(startDir: string): string | null { // Start search from the provided directory (e.g., current working directory) let currentDir = path.resolve(startDir); // Ensure absolute path |
