refactor: consolidate all flags to use hyphens (deprecate underscore flags) (#3541)

This commit is contained in:
Jack Wotherspoon
2025-07-08 16:56:12 -04:00
committed by GitHub
parent 2ed1b378cb
commit 27a2d8af14
4 changed files with 39 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ import { Settings } from './settings.js';
// to avoid circular dependencies.
interface SandboxCliArgs {
sandbox?: boolean | string;
'sandbox-image'?: string;
sandboxImage?: string;
}
const VALID_SANDBOX_COMMANDS: ReadonlyArray<SandboxConfig['command']> = [
@@ -99,7 +99,7 @@ export async function loadSandboxConfig(
const packageJson = await getPackageJson();
const image =
argv['sandbox-image'] ??
argv.sandboxImage ??
process.env.GEMINI_SANDBOX_IMAGE ??
packageJson?.config?.sandboxImageUri;