This commit is contained in:
Mark McGranaghan 2012-09-16 18:19:26 -07:00
parent 75c81c6d95
commit c1d067e350

13
xx-flags.go Normal file
View File

@ -0,0 +1,13 @@
package main
import ("fmt"; "flag")
func main() {
maxp := flag.Int("repeat", 3, "number of times to repeat arguments")
flag.Parse()
for i := 0; i < *maxp; i++ {
for _, arg := range flag.Args() {
fmt.Println(arg)
}
}
}