diff --git a/058-flags.go b/058-flags.go index 0c0d0fa..e154258 100644 --- a/058-flags.go +++ b/058-flags.go @@ -3,7 +3,7 @@ package main import ("fmt"; "flag") func main() { - maxp := flag.Int("repeat", 3, "number of times to repeat arguments") + maxp := flag.Int("repeat", 3, "time to repeat args") flag.Parse() for i := 0; i < *maxp; i++ { for _, arg := range flag.Args() { @@ -11,3 +11,9 @@ func main() { } } } + +// todoo +// multiple flags +// trailing args +// arg escaping +// help text and usage errors