flags
is a module for accepting and formatting command line flags.
Setting up the expected flags
This sets up a count variable and accepts input.
var count int
flag.IntVar(&count, "t", 5, "a positive number to count to")
flag.Parse()
Usage
To output usage instructions:
flag.Usage()