package main import ( "fmt" "log" "os" ) func main() { if len(os.Args) < 2 { fmt.Println("Not enough args") return } switch os.Args[1] { case "run": log.Println("Running") run() default: fmt.Println("invalid command") } }