mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
refactor: consolidate all flags to use hyphens (deprecate underscore flags) (#3541)
This commit is contained in:
parent
2ed1b378cb
commit
27a2d8af14
4 changed files with 39 additions and 16 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue