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 488a5853dd
commit ccb3bf9ea5
4 changed files with 39 additions and 16 deletions
+2 -2
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;