I know you can specify command line flags and run your binary file against them like this:
./binary -output=html -type=doc
However, I was looking at the implementation of this Go package: https://github.com/jteeuwen/go-bindata
I'm wondering how the author is able to enable the user to run the commands like this
go-bindata /data
instead of
./go-bindata -target=/data
Appreciate some help in case I missed out anything!