Go provides support for command line "flag" parsing in the flag package.
playground/go/command-line-args/command-line-arg-parser.go