INNER CODE UNIT · Go

backendName

fengshao1227/ccg-workflow · codeagent-wrapper/main.go:224

					backendName = args[i+1]
					i++
				case strings.HasPrefix(arg, "--backend="):
					value := strings.TrimPrefix(arg, "--backend=")
					if value == "" {
						fmt.Fprintln(os.Stderr, "ERROR: --backend flag requires a value")
						return 1
					}
					backendName = value
				case arg == "--with-mcp":
					withMCPInParallel = true
					continue
				case arg == "--gemini-model", arg == "--grok-model", arg == "--kimi-model", arg == "--opencode-model":
					// Bare form carries its value in the next arg — consume it too,
					// otherwise the value lands in extras and hard-fails the run.
					geminiModelInParallel = true
					if i+1 < len(args) && !strings.HasPrefix(args[i+1], "-") {
						i++

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…