main.go 232 B

1234567891011121314151617
  1. package main
  2. import (
  3. "log"
  4. "os"
  5. "github.com/dunglas/frankenphp"
  6. )
  7. func main() {
  8. if len(os.Args) <= 1 {
  9. log.Println("Usage: testcli script.php")
  10. os.Exit(1)
  11. }
  12. os.Exit(frankenphp.ExecuteScriptCLI(os.Args[1], os.Args))
  13. }