1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package main import ( "fmt" "flag" "log" "os" "strings" "os/exec" ) func main() { fmt.Println("Hello World") command := flag.String( "command", "", "The MAin Command") ignoreErrors := flag.Bool( "ignore-errors", false, "Keep running after error if true") flag.Parse() }