nyx/tests/dynamic_fixtures/go/flag_cli/benign.go
2026-06-05 10:16:30 -05:00

18 lines
279 B
Go

// Phase 15 — flag.Parse CLI, benign.
// Echoes a fixed string; argv is discarded.
package entry
import (
"flag"
"fmt"
"os/exec"
)
func Run() {
flag.Parse()
_ = flag.Args()
cmd := exec.Command("echo", "hello")
out, _ := cmd.CombinedOutput()
fmt.Print(string(out))
}