Go standard library provides package flag that helps with parsing flags passed to program.
Note that flag package doesn't provide usual GNU-style flags. That means that multi-letter flags must be started with single hyphen like this:
-exampleflag , not this: --exampleflag. GNU-style flags can be d...