flag.NewFlagSet parses flags for this script only. String and Int return pointers, so read them with go/deref after Parse. The arguments are a Go string slice built with go/append.
(defflags(flag.NewFlagSet"example"flag.ContinueOnError))(defname(.Stringflags"name""world""who to greet"))(deftimes(.Intflags"times"1"how many"))(.Parseflags(applygo/append(go/make(go/slice-ofgo/string))(or*command-line-args*[])))(dotimes[_(go/dereftimes)](println"hello"(go/derefname)))
Flags come after the script name.
$ glj command-line-flags.glj -name Ada -times 2
hello Adahello Ada